From 63fc737f26db061fe972097f83dfd97233a4660b Mon Sep 17 00:00:00 2001 From: "Dr. Awesome Doge" Date: Mon, 15 Dec 2025 15:53:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=BE=A9=E9=83=A8=E7=BD=B2=EF=BC=9A?= =?UTF-8?q?=E6=94=B9=E7=94=A8=20gh-pages=20=E5=88=86=E6=94=AF=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 使用 peaceiris/actions-gh-pages 推送到 gh-pages 分支 - 配合 repo 的 GitHub Pages 設定(source: gh-pages) - 移除 actions/deploy-pages 直接部署方式 --- .github/workflows/run.yml | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index d7510f6..95e9226 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -78,13 +78,29 @@ jobs: if: github.ref == 'refs/heads/master' && github.event_name == 'push' && github.repository == 'cypherpunks-core/cypherpunks-core.github.io' needs: build runs-on: ubuntu-latest - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Download artifact + uses: actions/download-artifact@v4 + with: + name: github-pages + path: _site + + - name: Extract artifact + run: | + cd _site + tar -xvf artifact.tar + rm artifact.tar + - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./_site + publish_branch: gh-pages + force_orphan: true # Quality Checks (run on PRs) quality-check: