concept-collection / timeseries-compressibility
Add GitHub Pages deploy workflow
Jeremy Magland <jmagland@flatironinstitute.org> committed commit 1efbf4a435ab parent 95929e6 Browse files
1 changed file+35−0
.github/workflows/deploy.ymladded+35−0View file
@@ -0,0 +1,35 @@
1+name: deploy
2+on:
3+ push:
4+ branches: [main]
5+ workflow_dispatch:
6+
7+permissions:
8+ contents: read
9+ pages: write
10+ id-token: write
11+
12+concurrency:
13+ group: pages
14+ cancel-in-progress: true
15+
16+jobs:
17+ build-deploy:
18+ runs-on: ubuntu-latest
19+ environment:
20+ name: github-pages
21+ url: ${{ steps.deployment.outputs.page_url }}
22+ steps:
23+ - uses: actions/checkout@v4
24+ - uses: actions/setup-node@v4
25+ with:
26+ node-version: 24
27+ cache: npm
28+ - run: npm ci
29+ - run: npm run build # tsc -b first, so this is the typecheck too
30+ - uses: actions/configure-pages@v5
31+ - uses: actions/upload-pages-artifact@v3
32+ with:
33+ path: dist
34+ - id: deployment
35+ uses: actions/deploy-pages@v4