Update README.md #177
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Publish storybook to GitHub Pages | |
on: | |
push: | |
branches: | |
- "master" | |
jobs: | |
deploy: | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.build-publish.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- id: build-publish | |
uses: bitovi/github-actions-react-to-ghp@v1.2.2 | |
with: | |
path: storybook-static | |
build_command: NODE_ENV=production npm run build && npm run build:storybook |