From 7ab25f33635ceec9e1e5e5fa1ca44ebdceec6191 Mon Sep 17 00:00:00 2001 From: honlnk Date: Wed, 3 Jun 2026 23:59:44 +0800 Subject: [PATCH 1/2] =?UTF-8?q?ci(ci):=20=E9=83=A8=E7=BD=B2=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E6=94=B9=E4=B8=BA=20release-*=20tag=20=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 不再在 push master 时自动部署,改为推送 release-* 格式的 tag 时触发(如 release-v0.1.0),保留 workflow_dispatch 手动触发 Co-Authored-By: Claude Opus 4.8 --- .github/workflows/deploy-pages.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index ece3460..99e71a6 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -2,8 +2,8 @@ name: Deploy to GitHub Pages on: push: - branches: - - master + tags: + - 'release-*' workflow_dispatch: permissions: From daf8cf2b0dfd3f3d3b0c837aa39b71a05c70e21b Mon Sep 17 00:00:00 2001 From: honlnk Date: Thu, 4 Jun 2026 00:11:02 +0800 Subject: [PATCH 2/2] =?UTF-8?q?ci(ci):=20=E7=A7=BB=E9=99=A4=20workflow=20?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=20environment=20=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GitHub Pages 的 environment protection rules 只允许分支部署, 不支持 tag。移除显式的 environment 配置,由 deploy-pages action 自动处理 Co-Authored-By: Claude Opus 4.8 --- .github/workflows/deploy-pages.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index 99e71a6..4f57607 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -17,9 +17,6 @@ concurrency: jobs: build-and-deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: