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