Skip to content

chore(deps-dev): bump dotenv-cli from 7.2.1 to 7.4.2 (#264) #133

chore(deps-dev): bump dotenv-cli from 7.2.1 to 7.4.2 (#264)

chore(deps-dev): bump dotenv-cli from 7.2.1 to 7.4.2 (#264) #133

name: Deploy gh pages
on:
push:
branches:
- "main"
- "!gh-pages"
workflow_dispatch:
jobs:
deploy-storybook:
env:
DATABASE_URL: ${{ secrets.DATABASE_PREVIEW_URL }}
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install deps (with cache)
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Create env file
run: |
touch .env
echo DATABASE_URL=${DATABASE_URL} >> .env
- name: Build
run: pnpm turbo run build
- name: Build storybook(no cache)
run: pnpm turbo build:storybook
- name: Deploy to GH Pages 🚀
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./packages/vujita-ui/storybook-static