andrewdex/S3 Deploy Github Action
Deploy a directory to an S3 bucket using the AWS CLI.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| AWS_S3_BUCKET | S3 bucket name | yes | — |
| SOURCE_DIR | Source directory to upload | no | . |
| AWS_REGION | AWS region | no | us-east-1 |
| AWS_ACCESS_KEY_ID | AWS access key ID | yes | — |
| AWS_SECRET_ACCESS_KEY | AWS secret access key | yes | — |
| CLOUDFRONT_DISTRIBUTION_ID | CloudFront distribution ID for cache invalidation | no | — |
| AWS_S3_PREFIX | Optional prefix for the S3 bucket | no | — |
| AWS_S3_ENDPOINT | Optional endpoint URL for the S3 bucket | no | — |
| AWS_S3_ACL | Optional ACL for uploaded files (e.g., public-read). Only use if ACLs are enabled on your bucket. | no | — |
| DELETE_REMOVED | If true, delete files from S3 that don't exist in the source directory | no | false |
Outputs
| name | description |
|---|---|
| s3_url | The S3 URL where files were deployed |
| cloudfront_invalidation_id | The CloudFront invalidation ID (only set if CLOUDFRONT_DISTRIBUTION_ID is provided) |