Skip to content

Commit fd030c4

Browse files
committed
chore: deploy storybook on gh pages
1 parent 65c22f0 commit fd030c4

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,28 @@ jobs:
1717
- uses: actions/setup-node@v3
1818
with:
1919
cache: 'yarn'
20-
- id: main
21-
run: |
20+
- run: |
2221
yarn install --frozen-lockfile
2322
yarn release
23+
yarn build-storybook
2424
env:
2525
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
- uses: actions/upload-pages-artifact@v1
28+
with:
29+
path: ./storybook-static
30+
31+
# See: https://github.com/actions/deploy-pages
32+
deploy-job:
33+
needs: release-job
34+
permissions:
35+
pages: write
36+
id-token: write
37+
environment:
38+
name: github-pages
39+
url: ${{ steps.deployment.outputs.page_url }}
40+
runs-on: ubuntu-latest
41+
steps:
42+
- name: Deploy to GitHub Pages
43+
id: deployment
44+
uses: actions/deploy-pages@v1

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ yarn-error.log
1616
.size-snapshot.json
1717
pnpm-debug.log
1818
.parcel-cache
19-
pnpm-lock.yaml
19+
pnpm-lock.yaml
20+
storybook-static

0 commit comments

Comments
 (0)