From 2de2949f741f9a0eb7ba90dd070e2b8a656e89a0 Mon Sep 17 00:00:00 2001 From: Andrii Kostenko Date: Thu, 5 Mar 2026 11:09:23 +0000 Subject: [PATCH] Add GitHub Actions workflow to deploy Storybook to GitHub Pages Co-Authored-By: Claude Opus 4.6 --- .github/workflows/storybook.yml | 42 +++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/storybook.yml diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml new file mode 100644 index 000000000..c6da2770f --- /dev/null +++ b/.github/workflows/storybook.yml @@ -0,0 +1,42 @@ +name: Storybook + +on: + push: + branches: + - main + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: pages + cancel-in-progress: false + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '24' + cache: yarn + cache-dependency-path: frontend/yarn.lock + - run: cd frontend && yarn install --frozen-lockfile + - run: cd frontend && yarn storybook:build + - uses: actions/upload-pages-artifact@v3 + with: + path: frontend/storybook-static + + deploy: + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - id: deployment + uses: actions/deploy-pages@v4