-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (53 loc) · 1.7 KB
/
Copy pathpages.yml
File metadata and controls
64 lines (53 loc) · 1.7 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
61
62
63
64
name: Deploy demo to GitHub Pages
# Deploys apps/docs/ to https://roxyapi.github.io/ui/ on every push to main and
# on each published release.
on:
push:
branches: [main]
# dist is gitignored and rebuilt inside this workflow, so trigger on the
# source that feeds the build, not on build output.
paths:
- 'apps/docs/**'
- 'packages/ui/src/**'
- 'specs/openapi.json'
- 'scripts/**'
- '.github/workflows/pages.yml'
# No `release: [published]` trigger. It looked like it covered releases and
# never fired once: GitHub does not start a workflow from an event created
# with the default GITHUB_TOKEN, and release.yml creates the Release with
# exactly that token. Releases now deploy Pages from inside the release.yml
# `deploy-pages` job, which shares this concurrency group.
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- name: Build the library
run: bun run build
# build.ts syncs packages/ui/dist into apps/docs/dist so the
# site directory is self-contained and matches the local preview.
- uses: actions/configure-pages@v6
with:
enablement: true
- uses: actions/upload-pages-artifact@v5
with:
path: apps/docs
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v5