diff --git a/.github/workflows/site.yaml b/.github/workflows/site.yaml new file mode 100644 index 0000000..f7bc88e --- /dev/null +++ b/.github/workflows/site.yaml @@ -0,0 +1,27 @@ +name: Deploy Site +on: + workflow_dispatch: {} + push: + branches: + - main +jobs: + deploy: + runs-on: ubuntu-latest + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - uses: actions/checkout@v3 + - uses: mymindstorm/setup-emsdk@v12 + with: + version: "latest" + - run: make site + - uses: actions/configure-pages@v2 + - uses: actions/upload-pages-artifact@v1 + with: + path: dist/.site + - id: deployment + uses: actions/deploy-pages@v1