Skip to content

Instantly share code, notes, and snippets.

@wenqiglantz
Last active October 31, 2022 01:53
Show Gist options
  • Select an option

  • Save wenqiglantz/14536a58a486eb6ea8ea11ee31424781 to your computer and use it in GitHub Desktop.

Select an option

Save wenqiglantz/14536a58a486eb6ea8ea11ee31424781 to your computer and use it in GitHub Desktop.
- name: Zip the code and deploy to S3
run: |
aws s3 sync ./${{ inputs.build-dir }} s3://${{ secrets.S3_BUCKET_NAME }}
- name: Invalidate cloudFront cache
run: |
aws cloudfront create-invalidation --distribution-id ${{ secrets.CF_DISTRIBUTION_ID }} --paths "/*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment