Build Storybook #2
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 Storybook | |
# Every 24 hours and manually | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
with: | |
repository: wizarrrr/wizarr | |
ref: beta | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.18.2 | |
- name: Install Dependencies | |
run: npm ci --ignore-scripts | |
- name: Build Storybook | |
run: npx nx run wizarr-frontend:build-storybook | |
- name: Deploy Storybook | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist/storybook/wizarr-frontend |