From 596bdbde3a07b7c76cb24493c8e391f26c4dddbb Mon Sep 17 00:00:00 2001 From: Joschka de Cuveland Date: Fri, 19 Jan 2024 19:32:18 +0100 Subject: [PATCH] docs: deploy storybook to github pages --- .github/workflows/build.yml | 23 ++++++++++++++--------- .gitignore | 1 + 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3dd4903..388bc30 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,17 +46,22 @@ jobs: env: BUILD_ENV: GHA - - name: Setup Pages - uses: actions/configure-pages@v2 + # - name: Setup Pages + # uses: actions/configure-pages@v2 - - name: Upload artifact - uses: actions/upload-pages-artifact@v1 - with: - path: ./_site + # - name: Upload artifact + # uses: actions/upload-pages-artifact@v1 + # with: + # path: ./_site + + # - name: Deploy to GitHub Pages + # id: deployment + # uses: actions/deploy-pages@v1 - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v1 + - uses: bitovi/github-actions-storybook-to-github-pages@v1.0.1 + with: + path: storybook-static # default: dist/storybook + checkout: false # default: true - name: Deploy Storybook to Chromatic run: npm run chromatic diff --git a/.gitignore b/.gitignore index e87a79b..025a0d7 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ node_modules .DS_Store .idea build-storybook.log +storybook-static