Version Packages (alpha) (#210) #36
Workflow file for this run
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
| # Publish static data (including manifest.json) to GitHub Pages. | |
| # In repo Settings → Pages, set Source to "GitHub Actions". | |
| name: Deploy GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - duncanleo/data-overhaul | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "24" | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Generate manifest and Pages index | |
| run: | | |
| npm run cli -- -- manifest | |
| npm run cli -- -- pages-index | |
| - name: Create archives of data directory | |
| run: | | |
| tar -czf archive.tar.gz data | |
| zip -rq archive.zip data | |
| mv archive.tar.gz data/ | |
| mv archive.zip data/ | |
| - uses: actions/configure-pages@v5 | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: data | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |