Publish specimen site #28
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: Publish specimen site | |
| on: | |
| workflow_dispatch: | |
| workflow_run: | |
| workflows: ["Sync font packages", "Publish pending packages"] | |
| types: [completed] | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: astral-sh/setup-uv@v10.0.1 | |
| with: | |
| python-version: "3.13" | |
| - run: uv sync --all-packages | |
| - name: Build all tracked font packages | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: uv run fontpkg-gen build $(python3 -c "import json; print(' '.join(sorted(json.load(open('state.json')))))") --out build | |
| - name: Generate site | |
| run: uv run fontpkg-gen site --catalog catalog.json --packages build --out site-dist --state state.json | |
| - uses: actions/configure-pages@v6 | |
| - uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: site-dist | |
| - id: deployment | |
| uses: actions/deploy-pages@v5 |