diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c0ed77f..d2a0215 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,10 +27,21 @@ jobs: - name: Page Build run: | pipenv run mkdocs build -v - - name: Deploy - if: ${{ github.event_name == 'push' }} - uses: peaceiris/actions-gh-pages@v3 + - name: Upload Page Artifacts + uses: actions/upload-pages-artifact@v3 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./site - force_orphan: true + path: site + deploy: + name: Deploy + needs: build + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4