Skip to content

Commit

Permalink
🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
geekswg committed Dec 3, 2023
1 parent 9ce2014 commit de0c436
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 33 deletions.
35 changes: 17 additions & 18 deletions .env
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
# 站点名称
VITE_SITE_NAME = "毕少侠の主页"
VITE_SITE_ANTHOR = "無名"
VITE_SITE_KEYWORDS = "geekswg,毕少侠,个人主页"
VITE_SITE_DES = "毕少侠也在江湖,分享,编程"
VITE_SITE_URL = "geekswg.top"
VITE_SITE_LOGO = "/images/imgs/logo.png"

# 百度统计(若不需要可不填)
VITE_SITE_BAIDUTONGJI = "14e9f35ff8bc67fd4bcb5f07a6e6655a"
# 站点信息
VITE_SITE_NAME = "毕少侠の主页" # 名称
VITE_SITE_ANTHOR = "毕少侠" # 作者
VITE_SITE_KEYWORDS = "geekswg,毕少侠,个人主页" # 关键词
VITE_SITE_DES = "一个默默无闻的主页" # 站点简介
VITE_SITE_URL = "imsyy.top" # 站点地址
VITE_SITE_LOGO = "/images/icon/favicon.ico" # 站点主图标
VITE_SITE_MAIN_LOGO = "/images/icon/logo.png" # 主页图标
VITE_SITE_APPLE_LOGO = "/images/logo/apple-touch-icon.png" # Apple 端图标

# 简介文本
VITE_DESC_HELLO = "Talk is Cheap , Show Me the Code"
VITE_DESC_TEXT = "毕少侠也在江湖"
VITE_DESC_HELLO_OTHER = "Talk is Cheap , Show Me the Code"
VITE_DESC_HELLO = "Talk is Cheap , Show Me the Code!"
VITE_DESC_TEXT = "一个建立于 21 世纪的小站,存活于互联网的边缘"
VITE_DESC_HELLO_OTHER = "Oops !"
VITE_DESC_TEXT_OTHER = "哎呀,这都被你发现了( 再点击一次可关闭 )"

# 社交链接
Expand All @@ -33,13 +32,13 @@ VITE_DESC_TEXT_OTHER = "哎呀,这都被你发现了( 再点击一次可关
VITE_WEATHER_KEY = "773a8e229dc264bcededffa74697e731"

# 建站日期
## 请按照 YYYY-MM-DD 格式填写
VITE_SITE_START = "2006-01-02"
## 若不需要,请设为空即可
## 请按照 YYYY-MM-DD 格式填写或者仅填写年份 YYYY
VITE_SITE_START = "2020-10-24"

# ICP 备案号
## 若不需要,请设为空即可
#VITE_SITE_ICP = "豫ICP备2022018134号-1"
VITE_SITE_ICP = ""
VITE_SITE_ICP = "豫ICP备2022018134号-1"

# 歌曲 API 地址
## 请参照 https://github.com/xizeyoupan/Meting-API#deno-deploy 进行 API 服务部署
Expand All @@ -52,4 +51,4 @@ VITE_SONG_SERVER = "netease"
# 播放类型 ( song-歌曲, playlist-播放列表, album-专辑, search-搜索, artist-艺术家 )
VITE_SONG_TYPE = "playlist"
# 播放 ID ( 若无需播放器,请设为空即可 )
VITE_SONG_ID = "7452421335"
VITE_SONG_ID = "7452421335"
44 changes: 29 additions & 15 deletions .github/workflows/auto-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
# Dev 分支推送部署预览
## 仅部署 Win 端
name: Build Dev
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
# 自动部署
name: auto-deploy

on:
push:
branches:
- dev
- master
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
release:
name: Build Website
runs-on: windows-latest
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:

# 检出 Git 仓库
- name: Check out git repository
uses: actions/checkout@v4.1.1
Expand All @@ -29,10 +36,17 @@ jobs:
- name: Build Website
run: npm run build
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
# 上传构建产物
- name: Upload artifacts
uses: actions/upload-artifact@v3.1.3
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# 查看 workflow 的文档来获取更多信息
# @see https://github.com/crazy-max/ghaction-github-pages
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v2
with:
name: Home
path: dist
# 部署到 gh-pages 分支
target_branch: gh-pages
# 部署目录为 VuePress 的默认输出目录
build_dir: dist/
env:
# @see https://docs.github.com/cn/actions/reference/authentication-in-a-workflow#about-the-github_token-secret
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit de0c436

Please sign in to comment.