diff --git a/.github/workflows/GHPages.yml b/.github/workflows/GHPages.yml index de80c8750..cab89e986 100644 --- a/.github/workflows/GHPages.yml +++ b/.github/workflows/GHPages.yml @@ -5,11 +5,26 @@ on: push: branches: [main] +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: pages + cancel-in-progress: true + jobs: - deploy-docs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v3 - uses: actions/setup-node@v3 - name: Install And Build run: |+ @@ -17,9 +32,12 @@ jobs: yarn build export NODE_OPTIONS="--max-old-space-size=8192" yarn docs:build - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + - name: Setup Pages + uses: actions/configure-pages@v1 + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./build - force_orphan: true + path: ./build + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1