From 4e0a0e43aaca24261dc5d7221b39280684708330 Mon Sep 17 00:00:00 2001 From: Tal Koren Date: Mon, 9 Dec 2024 15:01:47 +0200 Subject: [PATCH 1/2] ci: run publish v2 storybook on version2 branch --- .github/workflows/publish-v2-storybook.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-v2-storybook.yml b/.github/workflows/publish-v2-storybook.yml index 983941ae8f..5caf616495 100644 --- a/.github/workflows/publish-v2-storybook.yml +++ b/.github/workflows/publish-v2-storybook.yml @@ -1,4 +1,4 @@ -name: Publish V2 Storybook +name: Publish v2 Storybook on: workflow_run: @@ -13,6 +13,7 @@ jobs: steps: - uses: actions/checkout@v2 with: + ref: version2 fetch-depth: 0 - name: Run Setup uses: ./.github/actions/setup From 5ccd8c11a35e9d68caaa5bc373b461043dfe7f59 Mon Sep 17 00:00:00 2001 From: Tal Koren Date: Wed, 11 Dec 2024 14:36:45 +0200 Subject: [PATCH 2/2] chore: Delete .github/workflows/publish-v2-storybook.yml --- .github/workflows/publish-v2-storybook.yml | 48 ---------------------- 1 file changed, 48 deletions(-) delete mode 100644 .github/workflows/publish-v2-storybook.yml diff --git a/.github/workflows/publish-v2-storybook.yml b/.github/workflows/publish-v2-storybook.yml deleted file mode 100644 index 5caf616495..0000000000 --- a/.github/workflows/publish-v2-storybook.yml +++ /dev/null @@ -1,48 +0,0 @@ -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: - ref: version2 - 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/github-pages-deploy-action@v4.5.0 - 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/github-pages-deploy-action@v4.5.0 - with: - target-folder: v2 - clean-exclude: storybook-blocks/* - folder: packages/core/static_storybook - branch: gh-pages - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}