Skip to content

Commit

Permalink
Merge pull request #707 from wri/task/TM-1493-github-storybook
Browse files Browse the repository at this point in the history
[TM-1493] Deploy storybook to Github pages
  • Loading branch information
roguenet authored Dec 2, 2024
2 parents b9947dc + 0f8e602 commit b6b77d5
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/deploy-github-storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Workflow taken from the Storybook docs: https://storybook.js.org/docs/sharing/publish-storybook#github-pages
name: Build and Publish Storybook to GitHub Pages

on:
push:
branches:
- 'staging'

permissions:
contents: read
pages: write
id-token: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '20.x'

- uses: bitovi/[email protected]
with:
install_command: yarn install
build_command: yarn build-storybook
path: storybook-static
checkout: false
2 changes: 2 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ jobs:
run: yarn
- name: Test
run: yarn run jest --ci
- name: Build
run: NEXT_PUBLIC_TARGET_ENV=staging yarn build
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# 🌲 Terramatch Web Platform 🌲

### Storybook
We host the `staging` build of Storybook on [Github Pages](https://wri.github.io/wri-terramatch-website/)

### Installation

```
Expand Down

0 comments on commit b6b77d5

Please sign in to comment.