/ proof-of-concept / toy-instruments
Sign in
proof-of-concept / toy-instruments
toy-instruments / .github / workflows / pages.yml
42 lines · 803 BBlameHistoryRaw
1name: Deploy to GitHub Pages
3on:
4 push:
5 branches: [main]
6 workflow_dispatch:
8permissions:
9 contents: read
10 pages: write
11 id-token: write
13concurrency:
14 group: pages
15 cancel-in-progress: true
17jobs:
18 build:
19 runs-on: ubuntu-latest
20 steps:
21 - uses: actions/checkout@v4
22 - uses: actions/setup-node@v4
23 with:
24 node-version: 22
25 cache: npm
26 - run: npm ci
27 - run: npm test
28 - run: npm run build
29 - uses: actions/configure-pages@v5
30 - uses: actions/upload-pages-artifact@v3
31 with:
32 path: dist
34 deploy:
35 needs: build
36 runs-on: ubuntu-latest
37 environment:
38 name: github-pages
39 url: ${{ steps.deployment.outputs.page_url }}
40 steps:
41 - id: deployment
42 uses: actions/deploy-pages@v4
↑↓ move↵openescclose