Skip to content

Commit 2f64774

Browse files
ci: add docs workflow
1 parent 275cb96 commit 2f64774

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy docs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: 18
19+
20+
- run: npm ci
21+
22+
- run: npm run build
23+
24+
- name: Deploy storybook
25+
working-directory: ./packages/docs
26+
run: npm run deploy-storybook -- --ci --existing-output-dir=storybook-static
27+
env:
28+
GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)