From 76c2b6580b3288b95bfb1923ac77aa8e68d6d311 Mon Sep 17 00:00:00 2001 From: "Dr. Awesome Doge" Date: Mon, 22 Dec 2025 13:35:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=20GitHub=20Pages=20?= =?UTF-8?q?=E9=83=A8=E7=BD=B2=E6=96=B9=E5=BC=8F=E7=82=BA=E5=8E=9F=E7=94=9F?= =?UTF-8?q?=20workflow=20=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 將部署方式從 peaceiris/actions-gh-pages 改為 actions/deploy-pages, 以修復部分頁面(如 /bitcoin/*)無法訪問的問題。 --- .github/workflows/run.yml | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index 7db1736..d7510f6 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -78,28 +78,13 @@ 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 - uses: peaceiris/actions-gh-pages@v4 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./_site - publish_branch: gh-pages + id: deployment + uses: actions/deploy-pages@v4 # Quality Checks (run on PRs) quality-check: