/ concept-collection / commonroom
Sign in
concept-collection / commonroom
commonroom / .github / workflows / deploy.yml
45 lines · 1.0 KBBlameHistoryRaw
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
13# Allow one concurrent deployment, cancel in-progress runs.
14concurrency:
15 group: pages
16 cancel-in-progress: true
18jobs:
19 build:
20 runs-on: ubuntu-latest
21 steps:
22 - uses: actions/checkout@v4
23 - uses: actions/setup-node@v4
24 with:
25 node-version: 20
26 cache: npm
27 - run: npm ci
28 - run: npm run build
29 env:
30 # Optional; unset simply disables the relay-token field. Not a
31 # secret — the Worker it points at is protected by the room token.
32 VITE_TURN_ENDPOINT: ${{ vars.VITE_TURN_ENDPOINT }}
33 - uses: actions/upload-pages-artifact@v3
34 with:
35 path: dist
37 deploy:
38 needs: build
39 runs-on: ubuntu-latest
40 environment:
41 name: github-pages
42 url: ${{ steps.deployment.outputs.page_url }}
43 steps:
44 - id: deployment
45 uses: actions/deploy-pages@v4
moveopenescclose