Skip to content

Commit 9992c22

Browse files
author
Luke Bowerman
authored
chore: Correct canary workflow configuration (#1808)
1 parent c50360c commit 9992c22

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/canary.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ on:
1414
- '**/package*.json'
1515
tags-ignore:
1616
- v*
17+
1718
jobs:
18-
website:
19+
canary:
1920
runs-on: ubuntu-latest
2021
steps:
2122
- name: Clone repository
@@ -51,11 +52,11 @@ jobs:
5152

5253
- run: git reset --hard
5354

54-
- name: Build web site
55+
- name: Build documentation
5556
run: |
5657
yarn website-canary
5758
58-
- name: Deploy 🚀
59+
- name: Deploy canary documentation
5960
uses: JamesIves/[email protected]
6061
with:
6162
BRANCH: docs # The branch the action should deploy to.

config/website.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@ mv www/public docs/$VERSION
1414
# Build Storybooks
1515

1616
# @TODO Check if storybook is already built and re-use
17-
[ -d "storybook/storybook-static" ] && yarn workspace storybook build
17+
if [ ! -d storybook/storybook-static ]; then
18+
yarn workspace storybook build
19+
fi
1820
cp -r storybook/storybook-static docs/$VERSION/storybook

0 commit comments

Comments
 (0)