Skip to content

Commit

Permalink
Update deploy.yaml
Browse files Browse the repository at this point in the history
Trying 'bitovi/github-actions-storybook-to-github-pages' again
  • Loading branch information
ChrisWatterston authored Aug 8, 2024
1 parent 403cf25 commit 53ef896
Showing 1 changed file with 11 additions and 23 deletions.
34 changes: 11 additions & 23 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,18 @@
name: Build and Publish Storybook to GitHub Pages

on:
push:
branches:
- "main"
- "main" # change to the branch you wish to deploy from

permissions:
contents: read
pages: write
id-token: write

jobs:
build-deploy:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install dependencies
run: npm install

- name: Build Storybook
run: npm run build-storybook

- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
- id: build-publish
uses: bitovi/[email protected]
with:
path: build # change to your build folder

0 comments on commit 53ef896

Please sign in to comment.