diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 93b3d3a6..89d86bd2 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -9,6 +9,9 @@ jobs: build: name: Build and Publish Docusaurus runs-on: ubuntu-latest + permissions: + pages: write + id-token: write steps: - uses: actions/checkout@v4 with: @@ -24,8 +27,10 @@ jobs: - name: Build website working-directory: ./website run: yarn build - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 + - name: Upload Build Artifact + uses: actions/upload-pages-artifact@v3 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./website/build + path: website/build + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4