| 1 | # Deploys the static landing page in site/ to GitHub Pages. |
| 2 | # One-time setup: Settings > Pages > Build and deployment > Source: GitHub Actions. |
| 3 | name: Pages |
| 4 | |
| 5 | on: |
| 6 | push: |
| 7 | branches: [main] |
| 8 | paths: |
| 9 | - "site/**" |
| 10 | - ".github/workflows/pages.yml" |
| 11 | workflow_dispatch: |
| 12 | |
| 13 | permissions: |
| 14 | contents: read |
| 15 | pages: write |
| 16 | id-token: write |
| 17 | |
| 18 | concurrency: |
| 19 | group: pages |
| 20 | cancel-in-progress: false |
| 21 | |
| 22 | jobs: |
| 23 | deploy: |
| 24 | runs-on: ubuntu-latest |
| 25 | environment: |
| 26 | name: github-pages |
| 27 | url: ${{ steps.deployment.outputs.page_url }} |
| 28 | steps: |
| 29 | - uses: actions/checkout@v4 |
| 30 | - uses: actions/configure-pages@v5 |
| 31 | - uses: actions/upload-pages-artifact@v3 |
| 32 | with: |
| 33 | path: site |
| 34 | - id: deployment |
| 35 | uses: actions/deploy-pages@v4 |