Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix v2 storybook publish action #2632

Merged
merged 1 commit into from
Dec 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/publish-v2-storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Publish V2 Storybook

on:
workflow_run:
workflows: ["Release v2 version"]
types:
- completed
workflow_dispatch:

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run Setup
uses: ./.github/actions/setup
with:
npm_token: ${{ secrets.npm_token }}
- name: Build & deploy Storybooks to GitHub Pages
run: |
yarn lerna run build --include-dependencies
yarn lerna run --scope monday-ui-react-core build-storybook
yarn lerna run --scope vibe-storybook-components build-storybook
cd packages/core/static_storybook
echo "vibe.monday.com" > ./CNAME
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
- name: Push storybook-blocks Storybook to Github Pages
if: success()
uses: JamesIves/[email protected]
with:
folder: packages/storybook-blocks/storybook-static
branch: gh-pages
target-folder: storybook-blocks
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push core Storybook to Github Pages
uses: JamesIves/[email protected]
with:
target-folder: v2
clean-exclude: storybook-blocks/*
folder: packages/core/static_storybook
branch: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading