Merge pull request #134 from abusix/force-new-release #135
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: [main] | |
jobs: | |
build-and-deploy-storybook: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Install and Build 🔧 | |
run: | # Install npm packages and build the Storybook files | |
npm install | |
npm run build:storybook | |
- name: Add .nojekyll file to static folder 📁 | |
run: | |
| # Add .nojekyll file to the static folder to prevent 404 errors (files with _ prefix are not copied to the static folder) | |
touch storybook-static/.nojekyll | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
BRANCH: gh-pages-storybook # The branch the action should deploy to. | |
FOLDER: storybook-static # The folder that the build-storybook script generates files. |