From cc02163c6e76f0566e9e838b74e8dab9207cd2b3 Mon Sep 17 00:00:00 2001 From: ThereseRingPersen Date: Mon, 25 Sep 2023 16:45:29 +0200 Subject: [PATCH] set up workflow to publish storybook on gh-pages --- .github/workflows/deploy-storybook.yml | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/deploy-storybook.yml diff --git a/.github/workflows/deploy-storybook.yml b/.github/workflows/deploy-storybook.yml new file mode 100644 index 00000000..aa557500 --- /dev/null +++ b/.github/workflows/deploy-storybook.yml @@ -0,0 +1,29 @@ +name: Deploy Storybook + +on: + push: + branches: + - dev + paths: + - "src/vue/**" + workflow_dispatch: + +jobs: + build-deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install dependencies + run: npm install + + - name: Build Storybook + run: npm run build-storybook + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.STORY_BOOK }} + publish_dir: ./storybook-static