Skip to content

Commit ace907d

Browse files
authored
Update deploy-github-pages.yml
1 parent 869ba1b commit ace907d

File tree

1 file changed

+5
-20
lines changed

1 file changed

+5
-20
lines changed
Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,18 @@
1-
# Workflow name
2-
name: Build and Publish Storybook to GitHub Pages
3-
41
on:
5-
# Event for the workflow to run on
62
push:
73
branches:
8-
- 'main' # Replace with the branch you want to deploy from
4+
- "main" # change to the branch you wish to deploy from
95

106
permissions:
117
contents: read
128
pages: write
139
id-token: write
1410

15-
# List of jobs
1611
jobs:
1712
deploy:
1813
runs-on: ubuntu-latest
19-
# Job steps
2014
steps:
21-
# Manual Checkout
22-
- uses: actions/checkout@v4
23-
with:
24-
fetch-depth: 0
25-
# Set up Node
26-
- uses: actions/setup-node@v4
27-
with:
28-
node-version: '20'
29-
#👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow
30-
- uses: bitovi/[email protected]
31-
with:
32-
path: docs # default: dist/storybook
33-
checkout: false # default: true
15+
- id: build-publish
16+
uses: bitovi/[email protected]
17+
with:
18+
path: build # change to your build folder

0 commit comments

Comments
 (0)