devopspolis/Deploy artifact to AWS S3
Upload GitHub Actions artifacts to AWS S3 with optional extraction, support for ZIP, TAR, and prefix targeting.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Jul 30, 2025
- License
- None
Pinned Snippet
uses: devopspolis/deploy-artifact-to-aws-s3@3e75b91c48d068e75e396d50af08cfc2841d983c # v0.7.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| artifact | Name of the artifact to deploy (source) | yes | — |
| path | Filename of the artifact within the download directory | yes | — |
| script | Optional shell script to execute before uploading to S3 | no | — |
| working-directory | Directory to execute the script in (default '.') | no | . |
| bucket | AWS S3 Bucket name (optionally with prefix: bucket-name/path/to/dir) | yes | — |
| aws-region | AWS region | no | — |
| delete | Delete files not in source artifact | — | false |
| extract-artifact | If true, extracts the archive and uploads contents. If false, uploads archive as-is | — | true |
| tags | Bucket tags (e.g. version=v1.2.0,environment=qa) | no | "" |
| role | IAM role to assume (optional) | no | — |
Outputs
| name | description |
|---|---|
| bucket_arn | The AWS S3 bucket ARN |
| uploaded_uri | Full S3 URI to the uploaded file or folder |
| integrity_hash | MD5 hash of uploaded contents (for integrity verification) |
| file_count | Number of files uploaded (for extracted archives) |
| upload_size | Total size of uploaded content in bytes |