diff options
author | 2023-03-16 13:42:00 +0100 | |
---|---|---|
committer | 2023-03-16 13:42:00 +0100 | |
commit | ce3383ca984f0164bcc240efa35184b0854edf54 (patch) | |
tree | 6f581b18c468d38dcf2524b6b1a058507d64f24a /.github | |
parent | chore: update lockfile (diff) |
feat(storybook): deploy storybook to github pages
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yaml | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 158ff67..bd514d0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -34,20 +34,20 @@ jobs: name: build path: build - build_storybook: - runs-on: windows-latest - if: github.event.head_commit.author.name != 'actions' + deploy_storybook: + runs-on: ubuntu-latest + needs: test steps: - - uses: actions/checkout@v2 - - uses: actions/[email protected] - with: - node-version: '16' - - uses: bahmutov/npm-install@v1 - - run: yarn build-storybook - - uses: actions/upload-artifact@v2 - with: - name: storybook - path: storybook-static + - uses: actions/checkout@v2 + - uses: actions/[email protected] + with: + node-version: '16' + - uses: bahmutov/npm-install@v1 + - run: yarn build-storybook -o ./build_storybook + - run: git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${{github.repository}}.git + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - run: npx -y -p [email protected] gh-pages -d ./build_storybook --dest storybook --add -u "github-actions-bot <[email protected]>" check_if_version_upgraded: name: Check if version upgrade |