File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ name: _deploy
33on :
44 workflow_call :
55 inputs :
6+ bucket_name :
7+ required : true
8+ type : string
69 distribution_id :
710 required : true
811 type : string
4245 AWS_SECRET_ACCESS_KEY : ${{ secrets.WAFFLE_CICD_SECRET_ACCESS_KEY }}
4346 AWS_REGION : ap-northeast-2
4447 run : |
45- aws s3 sync ./dist s3://hangsha-web-dev --delete
48+ aws s3 sync ./dist s3://${{ inputs.bucket_name }} --delete
4649 aws cloudfront create-invalidation --distribution-id ${{ inputs.distribution_id }} --paths "/*"
Original file line number Diff line number Diff line change 1010 deploy :
1111 uses : ./.github/workflows/_deploy.yml
1212 with :
13+ bucket_name : hangsha-web-dev
1314 distribution_id : E3FWQLYH2W4XLU
1415 secrets : inherit
Original file line number Diff line number Diff line change 1010 deploy :
1111 uses : ./.github/workflows/_deploy.yml
1212 with :
13+ bucket_name : hangsha-web-prod
1314 distribution_id : E1UQAE6HOA8O14
1415 secrets : inherit
You can’t perform that action at this time.
0 commit comments