Skip to content

Commit

Permalink
Generate storybook and publish to github pages along with coverage re…
Browse files Browse the repository at this point in the history
…port for develop branch
  • Loading branch information
chrismaltby committed Sep 11, 2024
1 parent a19941b commit e003127
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/coverage.yml → .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,30 @@ jobs:
run: |
yarn
- name: Create dist directory
run: |
mkdir ./dist
- name: Generate Coverage
run: |
yarn coverage
- name: Move coverage into dist
run: |
mv ./coverage/lcov-report ./dist/coverage
- name: Generate Storybook
run: |
yarn build-storybook
- name: Move storybook into dist
run: |
mv ./storybook-static ./dist/storybook
- name: Upload Artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./coverage/lcov-report"
path: "./dist"

deploy-coverage:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# GB Studio

[![Github Actions Status](https://github.com/chrismaltby/gb-studio/actions/workflows/main.yml/badge.svg?branch=develop)](https://github.com/chrismaltby/gb-studio/actions?query=branch%3Adevelop)
[![Github Actions Status](https://github.com/chrismaltby/gb-studio/actions/workflows/main.yml/badge.svg?branch=develop)](https://github.com/chrismaltby/gb-studio/actions?query=branch%3Adevelop) [![Storybook](https://img.shields.io/badge/Storybook-FF4785?logo=storybook&logoColor=white)](https://chrismaltby.github.io/gb-studio/storybook) [![Code Coverage](https://img.shields.io/badge/Coverage-blue?logo=jest&logoColor=white)](https://chrismaltby.github.io/gb-studio/coverage)

Copyright (c) 2024 Chris Maltby, released under the [MIT license](https://opensource.org/licenses/MIT).

Expand Down

0 comments on commit e003127

Please sign in to comment.