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