From ae1aa5ed98edc815ff8ce1a76d09fb6a5577e902 Mon Sep 17 00:00:00 2001 From: Amritha Raj Herle Date: Fri, 24 May 2024 17:23:55 +0200 Subject: [PATCH] feat: auto deploy storybook to github pages --- .github/workflows/deploy.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..0766196 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,23 @@ +on: + push: + branches: + - "master" + +permissions: + contents: read + pages: write + id-token: write + +jobs: + deploy: + environment: + name: github-pages + url: ${{ steps.build-publish.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - id: build-publish + uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3 + with: + path: storybook-static + install_command: yarn install + build_command: yarn build-storybook