Skip to content

Deploys a webapp to an s3 bucket and then invalidates cloudfront entry

License

Notifications You must be signed in to change notification settings

pukonu/action-deploy-webapp-aws

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Actions - S3 and Cloudfront Invalidation

This is a simple utility to deploy to AWS S3 bucket and invalidate a cloudfront id. It is that straightforward. See usage below

Usage:

Just place this in your code underneath your build action within the steps, update the variables and secrets and that is it.

      - name: Deploy application to AWS S3 and invalidate cloudfront cache
        uses: pukonu/action-deploy-webapp-aws@v.1.2.2
        id: deploy
        with:
          build_path: './path/to/build/folder'
          bucket_name: '<AWS BUCKET NAME>'
          bucket_key: ''
          distribution_invalidation_path: '/*'
          empty_bucket: 'false'  # set to true if you would like to empty the bucket first
        env:
          DISTRIBUTION_ID: '<DISTRIBUTION ID>'
          AWS_REGION: '<AWS REGION>'
          AWS_ACCESS_KEY_ID: '<AWS_ACCESS_KEY_ID>'
          AWS_SECRET_ACCESS_KEY: '<AWS_SECRET_ACCESS_KEY>'

About

Deploys a webapp to an s3 bucket and then invalidates cloudfront entry

Resources

License

Stars

Watchers

Forks

Packages

No packages published