From c603ad68127a0fbdceb8da5118cb8e036a18efe2 Mon Sep 17 00:00:00 2001 From: Ren HangQi <2572131118@qq.com> Date: Wed, 5 Jun 2024 01:50:00 +0800 Subject: [PATCH] =?UTF-8?q?[bug]=E5=B0=9D=E8=AF=95=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5c330aa..6d6e485 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,7 +5,7 @@ on: - main jobs: - deploy: + build: runs-on: ubuntu-latest permissions: contents: write # To push a branch @@ -35,12 +35,15 @@ jobs: git add . git commit -m "Deploy $GITHUB_SHA to gh-pages" git push --force --set-upstream origin gh-pages - - name: Deploy Web - uses: peaceiris/actions-gh-pages@v3 - with: - PERSONAL_TOKEN: ${{ secrets.GUIDEBOOK_TOKEN }} - EXTERNAL_REPOSITORY: syswonder/hvisor-Book - PUBLISH_BRANCH: gh-pages - PUBLISH_DIR: ./ - commit_message: ${{ github.event.head_commit.message }} - cname: hvisor.syswonder.org \ No newline at end of file + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file