| 1 |
name: Deploy static content to Pages |
| 2 |
on: |
| 3 |
push: |
| 4 |
tags: |
| 5 |
- v* |
| 6 |
|
| 7 |
workflow_dispatch: |
| 8 |
|
| 9 |
permissions: |
| 10 |
contents: read |
| 11 |
pages: write |
| 12 |
id-token: write |
| 13 |
|
| 14 |
concurrency: |
| 15 |
group: 'pages' |
| 16 |
cancel-in-progress: true |
| 17 |
|
| 18 |
jobs: |
| 19 |
deploy: |
| 20 |
runs-on: ubuntu-latest |
| 21 |
steps: |
| 22 |
- name: checkout |
| 23 |
uses: actions/checkout@v4 |
| 24 |
- name: setup Node |
| 25 |
uses: actions/setup-node@v4 |
| 26 |
with: |
| 27 |
node-version: 20 |
| 28 |
cache: 'npm' |
| 29 |
cache-dependency-path: docs/playground/package-lock.json |
| 30 |
- name: install dependencies |
| 31 |
run: make -C ./docs/playground deps |
| 32 |
- name: build |
| 33 |
run: make -C ./docs/playground build |
| 34 |
- name: setup Pages |
| 35 |
uses: actions/configure-pages@v4 |
| 36 |
- name: upload artifact |
| 37 |
uses: actions/upload-pages-artifact@v3 |
| 38 |
with: |
| 39 |
path: './docs/playground/dist' |
| 40 |
- name: deploy to GitHub Pages |
| 41 |
id: deployment |
| 42 |
uses: actions/deploy-pages@v4 |