Skip to content

Commit d99ed00

Browse files
chore: host browser demo on GitHub Pages at /deckprobe/
Checkout and build deckflow/deckprobe-demo so the project Pages URL is https://deckflow.github.io/deckprobe/ rather than /deckprobe-demo/. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent ff9df77 commit d99ed00

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

‎.github/workflows/pages.yml‎

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Deploy demo to GitHub Pages
2+
3+
# Site URL: https://deckflow.github.io/deckprobe/
4+
# Source of truth for the demo remains deckflow/deckprobe-demo; this workflow
5+
# runs in deckflow/deckprobe so the Pages path matches the repo name.
6+
7+
on:
8+
workflow_dispatch:
9+
repository_dispatch:
10+
types: [deploy-demo]
11+
# Re-deploy when packaging workflows change on main.
12+
push:
13+
branches: [main]
14+
paths:
15+
- ".github/workflows/pages.yml"
16+
17+
permissions:
18+
contents: read
19+
pages: write
20+
id-token: write
21+
22+
concurrency:
23+
group: pages
24+
cancel-in-progress: true
25+
26+
jobs:
27+
deploy:
28+
environment:
29+
name: github-pages
30+
url: ${{ steps.deployment.outputs.page_url }}
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout demo
34+
uses: actions/checkout@v7
35+
with:
36+
repository: deckflow/deckprobe-demo
37+
ref: main
38+
- uses: actions/setup-node@v4
39+
with:
40+
node-version: 20
41+
cache: npm
42+
- run: npm ci
43+
- run: npm run build
44+
- uses: actions/configure-pages@v5
45+
- uses: actions/upload-pages-artifact@v3
46+
with:
47+
path: dist
48+
- uses: actions/deploy-pages@v4
49+
id: deployment

0 commit comments

Comments
 (0)