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