/ concept-collection / fastandaccurate
Sign in
concept-collection / fastandaccurate
fastandaccurate / .github / workflows / deploy.yml
37 lines · 802 BBlameHistoryRaw
1name: deploy
2on:
3 push:
4 branches: [main]
5 workflow_dispatch:
7permissions:
8 contents: read
9 pages: write
10 id-token: write
12concurrency:
13 group: pages
14 cancel-in-progress: true
16jobs:
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 test
30 - run: npm run build
31 # Pages must already be enabled with "GitHub Actions" as the source.
32 - uses: actions/configure-pages@v5
33 - uses: actions/upload-pages-artifact@v3
34 with:
35 path: dist
36 - id: deployment
37 uses: actions/deploy-pages@v4
moveopenescclose