Skip to content

Commit a69eddb

Browse files
committed
fix: clean up cicd to manually trigger
1 parent 50a0a70 commit a69eddb

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/deploy-s3.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Deploy to S3
22

33
on:
4-
push:
5-
branches: [ imda ]
64
workflow_dispatch:
75

86
concurrency:
@@ -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 \

0 commit comments

Comments
 (0)