File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99jobs :
1010 test-build-release :
1111 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' }}
1313
1414 runs-on : ubuntu-latest
1515
4141 # Note that AWS CLI v2 is already installed by default on GitHub's Ubuntu 20.04.
4242 # per https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md#cli-tools.
4343 - name : Add AWS credentials
44- if : ${{ env.IS_PUSH_TO_MASTER }}
44+ if : ${{ env.IS_PUSH_TO_MASTER == 'true' }}
4545 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
4646 env :
4747 AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
5050 # Deploy storybook demo to S3 if handling a push (non-PR build) on the main branch
5151 # https://s3.amazonaws.com/transitive.js/index.html
5252 - name : Deploy storybook to S3
53- if : ${{ env.IS_PUSH_TO_MASTER }}
53+ if : ${{ env.IS_PUSH_TO_MASTER == 'true' }}
5454 run : yarn deploy-storybook
You can’t perform that action at this time.
0 commit comments