Skip to content

added: checkout v4

added: checkout v4 #6

# Workflow name
name: Build and Publish Storybook to GitHub Pages
on:
push:
branches:
- "main" # change to the branch you wish to deploy from
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.build-publish.outputs.page_url }}
steps:
- name: checkout
uses: actions/checkout@v4
- id: filter
uses: dorny/paths-filter@v3
with:
base: ${{ github.ref }}
predicate-quantifier: 'every'
filters: |
storybook:
- '!LICENSE'
- '!README.md'
- id: build-publish
if: ${{ steps.filter.outputs.storybook == 'true' }}
uses: bitovi/[email protected]
with:
install_command: yarn install # default: npm ci
build_command: yarn build-storybook # default: npm run build-storybook
path: storybook-static # default: dist/storybook
checkout: false