v0.1.88 #45
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 Deploy Storybook | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20" | |
- name: Install dependencies | |
run: yarn install | |
- name: Build package | |
run: yarn run build | |
- name: Build Histoire | |
run: yarn run story:build | |
- name: Create CNAME file | |
run: echo 'ui.frappe.io' > ./.histoire/dist/CNAME | |
- name: Deploy Histoire to | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.FRAPPE_UI_PAGES_TOKEN }} | |
publish_dir: ./.histoire/dist | |
publish_branch: gh-pages |