docs(v3.0.0-alpha.18): plans for the 4 remaining gaps — publish + RN … #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: Deploy demo to GitHub Pages | |
| # Repo went public in v3.0.0-alpha.16 — GitHub Pages on the Free tier | |
| # is now available. The deploy URL is | |
| # https://yamadablog.github.io/pulse-player/ | |
| # | |
| # Manual `workflow_dispatch` trigger kept alongside the push trigger so | |
| # the maintainer can re-deploy from any tag if a regression sneaks in | |
| # without a fresh push. | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| # Allow only one concurrent deployment, skipping runs queued between | |
| # the run in-progress and the latest. Don't cancel the in-progress run | |
| # — we want it to finish to leave a coherent deploy on the Pages CDN. | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| build: | |
| name: Build demo | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Node 20 | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci --no-audit --prefer-offline | |
| - name: Build demo | |
| run: npm run build | |
| env: | |
| # GitHub Pages serves the demo from | |
| # https://YamadaBlog.github.io/pulse-player/, so Vite needs | |
| # to know the base path for asset URLs. | |
| BASE_PATH: /pulse-player/ | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: ./dist | |
| deploy: | |
| name: Deploy | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v5 |