so yeah this uhh nominally kinda works wowzers yippee #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Purescript and Spago | |
| run: npm i -g purescript spago@next | |
| - name: Install Node and Spago dependencies | |
| run: npm i | |
| - name: Build static website | |
| run: npm run build | |
| - name: Upload /dist as artifact for GitHub Pages deployment | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: dist/ | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: # what does this even mean??? | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| permissions: | |
| pages: write | |
| id-token: write | |
| steps: | |
| - name: Deploy straight from artifact | |
| uses: actions/deploy-pages@v4 | |
| id: deployment | |
| with: | |
| reporting_interval: 1000 |