From 76db7eb29bca212163e5a9ae306b62661ca03834 Mon Sep 17 00:00:00 2001 From: Stephan <57194608+stephan418@users.noreply.github.com> Date: Tue, 4 Oct 2022 09:17:21 +0200 Subject: [PATCH] Add workflow to deploy the storybook --- .github/workflows/storybook-deploy.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/storybook-deploy.yml diff --git a/.github/workflows/storybook-deploy.yml b/.github/workflows/storybook-deploy.yml new file mode 100644 index 0000000..cee726c --- /dev/null +++ b/.github/workflows/storybook-deploy.yml @@ -0,0 +1,23 @@ +name: Deploy Storybook to GH pages + +on: + push: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js 16 + uses: actions/setup-node@v3 + with: + node-version: '16' + - name: Install dependencies + run: npm i + - name: Install deploy-storybook + run: npm i -g @storybook/storybook-deployer + - name: Build and deploy + run: storybook-to-gh-pages -- --ci --branch=gh-pages