Deploy dev storybook showcase #8
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: Deploy dev storybook showcase | |
env: | |
BUILD_DIR : "storybook-static/" | |
on: | |
# TODO: enable auto-deploy once all quality gates are set | |
# push: | |
# branches: | |
# - develop | |
workflow_dispatch: | |
jobs: | |
deploy_dev: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Build storybook | |
run: npm run build:storybook | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./${{ env.BUILD_DIR }} | |
publish_branch: gh-pages | |
commit_message: ${{ github.event.head_commit.message }} |