| 1 |
name: Deploy to GitHub Pages |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: ["main"] |
| 6 |
workflow_dispatch: |
| 7 |
|
| 8 |
permissions: {} |
| 9 |
|
| 10 |
concurrency: |
| 11 |
group: pages |
| 12 |
cancel-in-progress: true |
| 13 |
|
| 14 |
jobs: |
| 15 |
build: |
| 16 |
runs-on: ubuntu-latest |
| 17 |
permissions: |
| 18 |
contents: read |
| 19 |
steps: |
| 20 |
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| 21 |
with: |
| 22 |
persist-credentials: false |
| 23 |
|
| 24 |
- name: Setup mise |
| 25 |
uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1 |
| 26 |
with: |
| 27 |
cache: true |
| 28 |
|
| 29 |
- name: Build docs |
| 30 |
run: mise run build-docs |
| 31 |
|
| 32 |
- name: Configure Pages |
| 33 |
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0 |
| 34 |
|
| 35 |
- name: Upload artifact |
| 36 |
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 |
| 37 |
with: |
| 38 |
path: docs/public |
| 39 |
|
| 40 |
deploy: |
| 41 |
needs: build |
| 42 |
runs-on: ubuntu-latest |
| 43 |
permissions: |
| 44 |
pages: write |
| 45 |
id-token: write |
| 46 |
environment: |
| 47 |
name: github-pages |
| 48 |
url: ${{ steps.deployment.outputs.page_url }} |
| 49 |
steps: |
| 50 |
- name: Deploy to GitHub Pages |
| 51 |
id: deployment |
| 52 |
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0 |