diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4e0ac3f1..3aa0505a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,3 +40,20 @@ jobs: uses: actions/upload-pages-artifact@v3 with: path: ./output + + deploy: + if: github.ref == 'refs/heads/master' + permissions: + contents: read + pages: write + id-token: write + + runs-on: ubuntu-latest + needs: build + environment: + name: github-pages + url: ${{steps.deployment.outputs.page_url}} + steps: + - name: Deploy artifact + id: deployment + uses: actions/deploy-pages@v4