Skip to content

Commit efb7f0f

Browse files
committed
Run deploy script inside github page environment
1 parent 76cfe62 commit efb7f0f

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ permissions:
1212

1313
jobs:
1414
deploy:
15+
environment:
16+
name: github-pages
17+
url: ${{ steps.build-publish.outputs.page_url }}
1518
name: Deploy Demo App and Storybook
1619
runs-on: ubuntu-latest
1720
env:
@@ -68,6 +71,7 @@ jobs:
6871
echo $result
6972
echo ::set-output name=need_deploy::$result
7073
- name: Publish Storybook Documentation
74+
id: build-publish
7175
if: startsWith(steps.need_deploy.outputs.need_deploy, 'Deploy storybook')
7276
uses: bitovi/[email protected]
7377
with:

package-lock.json

Lines changed: 10 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)