diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 5fa776a..f497d39 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -49,14 +49,15 @@ jobs: timeout-minutes: 5 deploy: + permissions: + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest needs: build steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./_book \ No newline at end of file + id: deployment + uses: actions/deploy-pages@v3 \ No newline at end of file