From 5d93401e19c82e17f8762c93cddb631469c92863 Mon Sep 17 00:00:00 2001 From: Daniel Schiavini Date: Mon, 11 Nov 2024 16:09:46 +0100 Subject: [PATCH] chore: inline workflow --- .github/workflows/storybook.yaml | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/.github/workflows/storybook.yaml b/.github/workflows/storybook.yaml index e1ddbd49a..626220a44 100644 --- a/.github/workflows/storybook.yaml +++ b/.github/workflows/storybook.yaml @@ -1,5 +1,5 @@ -# workflow based off https://storybook.js.org/docs/8.5/sharing/publish-storybook#github-pages -name: Publish Storybook to GitHub Pages +name: Storybook +description: Builds and deploys Storybook to GitHub Pages on: push: @@ -22,10 +22,26 @@ jobs: with: node-version: 20 cache: yarn - - run: cd packages/curve-ui-kit + - uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3 with: - install_command: yarn install - build_command: yarn build:storybook path: storybook-static checkout: false + + - name: 'Build' + working-directory: packages/curve-ui-kit + run: | + yarn install + yarn build:storybook + + - name: 'upload' + uses: actions/upload-pages-artifact@v3 + with: + path: packages/curve-ui-kit/storybook-static + name: 'github-pages' + + - id: deploy + name: Deploy to GitHub Pages + uses: actions/deploy-pages@v4 + with: + token: ${{ github.token }}