Created
July 21, 2022 08:30
-
-
Save alpavlove/45f5cb1566204600eb3d9f471c492f01 to your computer and use it in GitHub Desktop.
Deploy storybook to Github Pages workflow
This file contains hidden or 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: Storybook | |
on: | |
push: | |
paths: ["stories/**", "src/**"] | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/[email protected] | |
with: | |
persist-credentials: false | |
- name: Install deps and build (with cache) | |
uses: bahmutov/npm-install@v1 | |
- name: Install and Build 🔧 | |
run: | |
npm run build-storybook | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: storybook-static | |
CLEAN: true | |
TARGET_FOLDER: docs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment