Try to push empty Storybook #5
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] | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install | |
run: yarn | |
if: success() || failure() | |
- name: Build Storybook | |
run: yarn build:showcase | |
if: success() || failure() | |
- name: Setup Pages | |
uses: actions/configure-pages@v5 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: "./dist-showcase" | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 | |
# deploy: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v4 | |
# | |
# - name: Setup Node.js environment | |
# uses: actions/setup-node@v4 | |
# with: | |
# node-version: '22.x' | |
# - name: Install and push Storybook to GitHub Pages | |
# uses: bitovi/[email protected] | |
# with: | |
# install_command: yarn install | |
# build_command: yarn build:showcase | |
# path: dist-showcase |