This repository has been archived by the owner on Dec 26, 2024. It is now read-only.
gh-pages #169
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: gh-pages | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- 'stories/**/*' | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Setup expo cli | |
uses: expo/expo-github-action@v8 | |
with: | |
expo-version: 4.x | |
- name: Install dependencies | |
run: yarn install --network-concurrency 1 | |
- name: Lerna setup for packages | |
run: yarn pre | |
- name: Install packages and build storybook | |
run: | | |
yarn build:storybook | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{secrets.GITHUB_TOKEN}} | |
publish_branch: gh-pages | |
publish_dir: ./dist | |
SCRIPT_MODE: true |