Skip to content

Commit 71d86c4

Browse files
committed
ci: add SC doc publish
1 parent 78b5e0a commit 71d86c4

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish shared component documentation
2+
on:
3+
workflow_dispatch: {}
4+
5+
permissions: {}
6+
7+
jobs:
8+
doc:
9+
name: Publish Documentation
10+
runs-on: ubuntu-latest
11+
environment: SharedComponents
12+
steps:
13+
- name: 🧮 Checkout code
14+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
15+
16+
- name: 🔧 Yarn cache
17+
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6
18+
with:
19+
cache: "yarn"
20+
node-version-file: package.json
21+
22+
- name: 🔨 Install dependencies
23+
run: "yarn install --pure-lockfile"
24+
25+
- name: 📖 Generate docs
26+
run: yarn build:docs
27+
28+
- name: 🚀 Deploy to Cloudflare Pages
29+
uses: cloudflare/wrangler-action@9681c2997648301493e78cacbfb790a9f19c833f # v3
30+
with:
31+
apiToken: ${{ secrets.CF_PAGES_TOKEN }}
32+
accountId: ${{ secrets.CF_PAGES_ACCOUNT_ID }}
33+
command: pages deploy _docs --project-name=shared-components-docs

0 commit comments

Comments
 (0)