From 0bbc1bdc40d4c60ba16c89344887d8ec90907cb0 Mon Sep 17 00:00:00 2001 From: Dorian Mazur <46839236+DorianMazur@users.noreply.github.com> Date: Thu, 21 Nov 2024 23:20:37 +0200 Subject: [PATCH] ci: improve docs workflow (#696) * ci: improve docs workflow * fix: permissions --- .github/workflows/docs.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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