Skip to content

Commit 43b5399

Browse files
committed
ci: deploy docs site to GH Pages
1 parent 5ea846d commit 43b5399

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/semantic-release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ permissions:
99
contents: write
1010
id-token: write
1111
packages: write
12+
pages: write
1213
env:
1314
GH_PACKAGES_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1415

1516
jobs:
1617
release:
18+
name: Release Package
1719
runs-on: ubuntu-latest
18-
1920
steps:
2021
- uses: actions/checkout@v4
2122
- uses: actions/setup-node@v4
@@ -35,3 +36,12 @@ jobs:
3536
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3637
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
3738
run: npm run semantic-release
39+
deploy:
40+
name: Deploy Doc Site
41+
runs-on: ubuntu-latest
42+
steps:
43+
- id: build-publish
44+
uses: bitovi/github-actions-storybook-to-github-pages@v1.0.2
45+
with:
46+
path: storybook-static
47+
build_command: build-storybook-docs

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"build": "cross-env-shell BABEL_ENV=build IS_PUBLISHING=true \"dts build && webpack --config webpack.config.js\"",
1616
"rollup": "cross-env-shell BABEL_ENV=build IS_PUBLISHING=true \"dts build\"",
1717
"build-storybook": "storybook build",
18+
"build-storybook-docs": "storybook build --docs",
1819
"storybook-docs": "storybook dev --docs",
1920
"lint": "dts lint",
2021
"lint-fix": "dts lint --fix",

0 commit comments

Comments
 (0)