File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
test-build-release :
11
11
env :
12
- IS_PUSH_TO_MASTER : ${{ github.event. push && github.ref == 'refs/heads/master' }}
12
+ IS_PUSH_TO_MASTER : ${{ github.event_name == ' push' && github.ref == 'refs/heads/master' }}
13
13
14
14
runs-on : ubuntu-latest
15
15
41
41
# Note that AWS CLI v2 is already installed by default on GitHub's Ubuntu 20.04.
42
42
# per https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md#cli-tools.
43
43
- name : Add AWS credentials
44
- if : ${{ env.IS_PUSH_TO_MASTER }}
44
+ if : ${{ env.IS_PUSH_TO_MASTER == 'true' }}
45
45
run : mkdir ~/.aws && printf '%s\n' '[default]' "aws_access_key_id=$AWS_ACCESS_KEY_ID" "aws_secret_access_key=$AWS_SECRET_ACCESS_KEY" "region=$AWS_REGION" > ~/.aws/config
46
46
env :
47
47
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
50
50
# Deploy storybook demo to S3 if handling a push (non-PR build) on the main branch
51
51
# https://s3.amazonaws.com/transitive.js/index.html
52
52
- name : Deploy storybook to S3
53
- if : ${{ env.IS_PUSH_TO_MASTER }}
53
+ if : ${{ env.IS_PUSH_TO_MASTER == 'true' }}
54
54
run : yarn deploy-storybook
You can’t perform that action at this time.
0 commit comments