v4.1.0 — audio quality + read cache (#20) #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 landing page | |
| # Deploy policy (the rule): | |
| # • Only on push to `main` — i.e. AFTER a PR merges; never on feature branches. | |
| # • Only when the landing page itself, OR one of the exact media files it ships, | |
| # OR this workflow changed (the `paths` filter). Unrelated pushes — including | |
| # other docs/media that the page doesn't use — do NOT redeploy. | |
| # • `workflow_dispatch` forces a manual redeploy when you need one. | |
| # ⚠ When you add a media file to the page, add it in TWO places: this `paths` | |
| # list AND the `cp` copy list in the deploy job below. | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "src/landing-page/**" | |
| - "docs/media/wordmark.png" | |
| - "docs/media/cli-home.png" | |
| - "docs/media/cli-model.png" | |
| - "docs/media/cli-player.png" | |
| - "docs/media/cli-lib.png" | |
| - "docs/media/cli-help.png" | |
| - "docs/media/dashboard.png" | |
| - "docs/media/home-server.png" | |
| - "docs/media/sample-read.wav" | |
| - ".github/workflows/pages.yml" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| # Belt-and-suspenders: only ever publish from `main`, even on a manual | |
| # workflow_dispatch (which can be triggered from any branch). | |
| if: github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Assemble site | |
| run: | | |
| mkdir -p _site | |
| cp -R src/landing-page/. _site/ | |
| mkdir -p _site/media | |
| cp docs/media/wordmark.png \ | |
| docs/media/cli-player.png \ | |
| docs/media/cli-home.png \ | |
| docs/media/cli-model.png \ | |
| docs/media/cli-lib.png \ | |
| docs/media/cli-help.png \ | |
| docs/media/dashboard.png \ | |
| docs/media/home-server.png \ | |
| docs/media/sample-read.wav \ | |
| _site/media/ | |
| - uses: actions/configure-pages@v5 | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: _site | |
| - id: deployment | |
| uses: actions/deploy-pages@v4 |