Skip to content

Commit 6798dfd

Browse files
committed
try different deploy id
1 parent dc7805b commit 6798dfd

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed
Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,37 @@
1-
# Workflow name
21
name: Build and Publish Storybook to GitHub Pages
3-
2+
43
on:
5-
# Event for the workflow to run on
64
push:
75
branches:
8-
- 'storybook-resurrect' # Replace with the branch you want to deploy from
9-
6+
- 'storybook-resurrect'
7+
108
permissions:
119
contents: read
1210
pages: write
1311
id-token: write
14-
15-
# List of jobs
12+
1613
jobs:
17-
deploy:
14+
build:
1815
runs-on: ubuntu-latest
19-
# Job steps
2016
steps:
21-
# Manual Checkout
2217
- uses: actions/checkout@v4
23-
with:
24-
fetch-depth: 0
25-
# Set up Node
18+
2619
- uses: actions/setup-node@v4
2720
with:
2821
node-version: '20'
29-
#👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow
30-
- uses: bitovi/[email protected]
22+
23+
- run: yarn install
24+
25+
- run: yarn build-storybook
26+
27+
- uses: actions/upload-pages-artifact@v3
3128
with:
32-
install_command: yarn install # default: npm ci
33-
build_command: yarn build-storybook # default: npm run build-storybook
34-
path: storybook-static # default: dist/storybook
35-
checkout: false # default: true
29+
path: ./storybook-static
30+
31+
deploy:
32+
runs-on: ubuntu-latest
33+
needs: build
34+
environment:
35+
name: github-pages
36+
steps:
37+
- uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)