From 962f2bb5768e4fff45e3af639778ee49c57978be Mon Sep 17 00:00:00 2001 From: pama0917 Date: Mon, 13 Jan 2025 15:24:52 +0400 Subject: [PATCH] Try to use different branches for storybook --- .github/workflows/storybook.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml index 426ef68..2ff0871 100644 --- a/.github/workflows/storybook.yml +++ b/.github/workflows/storybook.yml @@ -19,11 +19,15 @@ jobs: with: node-version: '22.x' - - name: Install and push Storybook to GitHub Pages - uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3 + - name: Install + run: yarn + + - name: Build Storybook + run: yarn build:showcase + + - name: Deploy Storybook to GitHub Pages + uses: JamesIves/github-pages-deploy-action@v4 with: - install_command: yarn install - build_command: yarn build:showcase - path: dist-showcase - templateUse: - uses: Netcracker/qubership-apihub-json-crawl/.github/workflows/template-echo.yml@test/run-gh-action + branch: gh-pages + folder: dist-showcase + target-folder: ${{ github.ref_name }}