From 62904aeecba2a3acf1377397efc559c005dc1151 Mon Sep 17 00:00:00 2001 From: Stepan Lavrentev Date: Sun, 13 Aug 2023 22:02:34 +0300 Subject: [PATCH] feat: adding build and deploy feat: adding build and deploy --- .github/workflows/build_storybook.yml | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build_storybook.yml diff --git a/.github/workflows/build_storybook.yml b/.github/workflows/build_storybook.yml new file mode 100644 index 0000000000..bd4ee15d94 --- /dev/null +++ b/.github/workflows/build_storybook.yml @@ -0,0 +1,33 @@ +name: Build and Deploy Storybook + +on: + pull_request: + branches: + - dev + paths: + - 'src/**' + +jobs: + build-and-deploy-storybook: + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v2.3.1 + with: + persist-credentials: false + + - name: ⚙️ Install dependencies + uses: ./.github/workflows/install-pnpm + + - name: Build 🔧 + run: | + pnpm run build:storybook + + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@3.6.2 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: gh-pages # The branch the action should deploy to. + FOLDER: storybook-static # The folder that the build-storybook script generates files. + CLEAN: true # Automatically remove deleted files from the deploy branch + TARGET_FOLDER: storybook-static # The folder that we serve our Storybook files from