File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Deploy to S3
22
33on :
4- push :
5- branches : [ imda ]
64 workflow_dispatch :
75
86concurrency :
@@ -49,15 +47,15 @@ jobs:
4947 with :
5048 aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
5149 aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
52- aws-region : ${{ secrets.AWS_REGION }}
50+ aws-region : ${{ inputs.aws_region || secrets.AWS_REGION }}
5351
5452 - name : Sync assets to S3
5553 run : |
56- aws s3 sync ./dist "s3://${{ secrets.S3_BUCKET }}/" --delete
54+ aws s3 sync ./dist "s3://${{ inputs.s3_bucket || secrets.S3_BUCKET }}/" --delete
5755
5856 - name : Invalidate CloudFront (optional)
5957 env :
60- CLOUDFRONT_DISTRIBUTION_ID : ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}
58+ CLOUDFRONT_DISTRIBUTION_ID : ${{ inputs.cloudfront_distribution_id || secrets.CLOUDFRONT_DISTRIBUTION_ID }}
6159 if : ${{ env.CLOUDFRONT_DISTRIBUTION_ID != '' }}
6260 run : |
6361 aws cloudfront create-invalidation \
You can’t perform that action at this time.
0 commit comments