Skip to content

try to fix gh pages build 3 #17

try to fix gh pages build 3

try to fix gh pages build 3 #17

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [24.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci --verbose
- run: npm run lint
- run: npm run typecheck
- run: npm test
- run: npm run build public/data.csv
deploy:
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
contents: read
pages: write
id-token: write
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [24.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: mkdir -p pages-public && npm run build public/data.csv > pages-public/index.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: pages-public
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4