Skip to content

Commit 376271b

Browse files
committed
Workflow cleanup
1 parent 1562104 commit 376271b

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.github/workflows/publish_storybook.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,13 @@ jobs:
2828
deploy:
2929
environment:
3030
name: github-pages
31-
url: ${{ steps.build-publish.outputs.page_url }}
31+
url: ${{ steps.deploy.outputs.page_url }}
3232
runs-on: ubuntu-latest
3333
needs: retrieve_pages_url
3434
# Job steps
3535
steps:
3636
# Manual Checkout
3737
- uses: actions/checkout@v4
38-
with:
39-
fetch-depth: 0
4038
# Install pnpm
4139
- name: Install pnpm
4240
uses: pnpm/action-setup@v4
@@ -47,13 +45,18 @@ jobs:
4745
node-version: 22
4846
cache: "pnpm"
4947
cache-dependency-path: "./pnpm-lock.yaml"
50-
#👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow
51-
- uses: bitovi/[email protected]
52-
id: build-publish
48+
# Install dependencies
49+
- run: pnpm install
50+
# Build
51+
- id: build
5352
env:
5453
PAGES_URL: ${{ needs.retrieve_pages_url.outputs.pages_url }}
54+
run: pnpm build-storybook
55+
# Upload
56+
- uses: actions/upload-pages-artifact@v3
5557
with:
56-
install_command: pnpm install
57-
build_command: pnpm build-storybook
58-
path: storybook-static # default: dist/storybook
59-
checkout: false # default: true
58+
path: "storybook-static"
59+
# Deploy
60+
- id: deploy
61+
name: Deploy to GitHub Pages
62+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)