-
Notifications
You must be signed in to change notification settings - Fork 6
60 lines (48 loc) · 1.57 KB
/
Copy pathpages.yaml
File metadata and controls
60 lines (48 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Pages
on:
push:
jobs:
build-sites:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- name: Install pnpm
uses: pnpm/action-setup@v6
- name: Install node
uses: actions/setup-node@v7
with:
node-version: 24
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build workspace packages
run: pnpm --filter @health-samurai/aidbox-client --filter @health-samurai/aidbox-fhirpath-lsp run build
- name: Build Storybook (react-components)
run: |
pnpm --filter @health-samurai/react-components run build-storybook
mkdir -p site-out/react-components
cp -a packages/react-components/storybook-static/. site-out/react-components/
- name: Build TypeDoc (aidbox-client)
run: |
pnpm --filter @health-samurai/aidbox-client run doc
mkdir -p site-out/aidbox-client
cp -a packages/aidbox-client/docs/. site-out/aidbox-client/
- name: Upload Pages artifact
if: success() && github.ref == 'refs/heads/master'
uses: actions/upload-pages-artifact@v5
with:
path: site-out
deploy-pages:
if: success() && github.ref == 'refs/heads/master'
needs: build-sites
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deploy
uses: actions/deploy-pages@v4