Skip to content

Commit fc2352d

Browse files
authored
fix(ci): Add internal site deployments to CI (#5112)
* add push event listening * print deployments * clean up ci print step
1 parent 076fe0c commit fc2352d

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/storybook.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ on:
44
release:
55
types: [released, prereleased]
66
pull_request:
7-
7+
branches: [ '**' ]
8+
push:
9+
branches: [ '[0-9]{3}-(summer|spring|winter)-[0-9]{2}' ]
810

911
env:
1012
# APPLITOOLS_API_KEY:
@@ -91,11 +93,15 @@ jobs:
9193

9294
- uses: "./.github/actions/copy-tokens-to-workspace"
9395

94-
# - run: |-HEROKU_RELEASE_STORYBOOK_APP_NAME
95-
# HEROKU_APP_NAME=${{ steps.which-heroku-app.outputs.HEROKU_APP_NAME }}
96-
# HEROKU_RELEASE_STORYBOOK_APP_NAME=${{ steps.which-heroku-app.outputs.HEROKU_RELEASE_STORYBOOK_APP_NAME }}
97-
# echo $HEROKU_APP_NAME
98-
# echo $HEROKU_RELEASE_STORYBOOK_APP_NAME
96+
- name: Print destination app names
97+
run: |
98+
HEROKU_APP_NAME=${{ steps.which-heroku-app.outputs.HEROKU_APP_NAME }}
99+
HEROKU_RELEASE_STORYBOOK_APP_NAME=${{ steps.which-heroku-app.outputs.HEROKU_RELEASE_STORYBOOK_APP_NAME }}
100+
echo "=============================="
101+
echo $HEROKU_APP_NAME
102+
echo $HEROKU_RELEASE_STORYBOOK_APP_NAME
103+
# if HEROKU_RELEASE_STORYBOOK_APP_NAME is "true", then we are in a PR
104+
echo "=============================="
99105
100106
- name: Compile styles
101107
run: npm run gulp -- styles

0 commit comments

Comments
 (0)