Skip to content

added: README.md workflow filter #5

added: README.md workflow filter

added: README.md workflow filter #5

# 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:
- 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