diff --git a/.github/workflows/build_website.yaml b/.github/workflows/build_website.yaml index 7083e4f..847bc0d 100644 --- a/.github/workflows/build_website.yaml +++ b/.github/workflows/build_website.yaml @@ -12,6 +12,8 @@ on: jobs: deploy: runs-on: ubuntu-latest + permissions: + contents: write steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 @@ -25,7 +27,7 @@ jobs: # If we've pushed to main, push the book's HTML to github-pages - if: ${{ github.ref == 'refs/heads/main' }} - name: GitHub Pages action + name: Save to gh-pages uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }}