From 0cb840adf53c160ae47f575b48bce08892187682 Mon Sep 17 00:00:00 2001 From: Sem Bauke Date: Fri, 5 Apr 2024 18:22:50 +0200 Subject: [PATCH] feat: Deploy Storybook as documentation site (#26) (#27) Co-authored-by: Oliver Eyton-Williams --- .github/workflows/storybook-deploy.yml | 30 ++++++++++++++++++++++++++ 1 file changed, 30 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 00000000..d2861fea --- /dev/null +++ b/.github/workflows/storybook-deploy.yml @@ -0,0 +1,30 @@ +name: Deploy Storybook to GitHub Pages +on: + push: + branches: [main] +jobs: + publish: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + - uses: pnpm/action-setup@v3 + name: Install pnpm + with: + version: 8 + run_install: true + + - name: Build Storybook + run: pnpm run build-storybook + + - name: Deploy to GitHub Pages + uses: JamesIves/github-pages-deploy-action@v4.5.0 + with: + folder: storybook-static