更换到Astro #9

Merged
biss merged 30 commits from switch-to-astro into master 2026-06-19 13:23:31 +08:00
353 changed files with 12823 additions and 27875 deletions

No files matched your search

+7 -10
View File
@@ -13,7 +13,7 @@ jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: 检查分支 - name: 检出分支
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
ref: master ref: master
@@ -29,28 +29,25 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: "22.x" node-version: "22.x"
- name: 安装 Hexo
run: |
npm install hexo-cli --global
- name: 安装依赖 - name: 安装依赖
if: steps.cache-node-modules.outputs.cache-hit != 'true' if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: | run: |
npm install npm install
- name: 清理文件树 - name: 同步 Astro 类型
run: | run: |
npm run clean npm run clean
- name: 生成静态文件并压缩 - name: 生成静态文件
run: | run: |
npm run build npm run build
- name: 部署 - name: 部署到 page 分支
run: | run: |
cd ./public cd ./dist
git init git init
git config user.name "${{ gitea.actor }}" git config user.name "${{ gitea.actor }}"
git config user.email "${{ gitea.actor }}@noreply.gitea.io" git config user.email "${{ gitea.actor }}@noreply.gitea.io"
git add . git add .
git commit -m "${{ gitea.event.head_commit.message }}··[$(date +"%Z %Y-%m-%d %A %H:%M:%S")]" git commit -m "${{ gitea.event.head_commit.message }} -- [$(date +"%Z %Y-%m-%d %A %H:%M:%S")]"
git push --force --quiet "https://${{ gitea.actor }}:${{ secrets.DEPLOY_TOKEN }}@git.biss.click/biss/blog.git" master:page git push --force --quiet "https://${{ gitea.actor }}:${{ secrets.DEPLOY_TOKEN }}@git.biss.click/biss/blog.git" master:page
- name: Deploy to Server - name: 触发服务器部署
run: | run: |
curl -k -X POST "https://panel.biss.click/hook?access_key=1XJG8IvYTSZVvD5dpm86GYIpQxgxBcucULnX1MFskZSKayXU" curl -k -X POST "https://panel.biss.click/hook?access_key=1XJG8IvYTSZVvD5dpm86GYIpQxgxBcucULnX1MFskZSKayXU"
+2 -1
View File
@@ -3,7 +3,8 @@ Thumbs.db
db.json db.json
*.log *.log
node_modules/ node_modules/
public/ .astro/
dist/
.deploy*/ .deploy*/
_multiconfig.yml _multiconfig.yml
.hintrc .hintrc
File diff suppressed because it is too large. Load diff
Loaded 3 of 353 files, more files were not shown because too many files have changed in this diff. Show more