https://github.com/moneymeets/action-s3-artifact
GitHub action to upload and deploy S3 artifacts
https://github.com/moneymeets/action-s3-artifact
Last synced: 3 months ago
JSON representation
GitHub action to upload and deploy S3 artifacts
- Host: GitHub
- URL: https://github.com/moneymeets/action-s3-artifact
- Owner: moneymeets
- Created: 2022-07-27T08:55:32.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2025-02-07T11:40:47.000Z (8 months ago)
- Last Synced: 2025-02-22T17:12:44.989Z (8 months ago)
- Language: Python
- Homepage:
- Size: 104 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# action-s3-artifact
GitHub action to upload and deploy S3 artifacts# Usage
See [action.yml](action.yml).
Upload:
```yaml
steps:
- name: Upload
uses: moneymeets/action-s3-artifact@master
with:
cmd: upload
config: s3-artifact-config.yml
artifacts_s3_path: s3://YourBucketHere/${{ github.event.repository.name }}/${{ github.sha }}/
```Deploy
```yaml
- name: Deploy
uses: moneymeets/action-s3-artifact@master
with:
cmd: deploy
config: s3-artifact-config.yml
artifacts_s3_path: s3://YourBucketHere/${{ github.event.repository.name }}/${{ github.sha }}/
environment: ${{ github.event.deployment.environment }}
```Config example:
```yaml
# s3-artifact-config.ymltarget_buckets:
dev: dummy.dev
live: dummy.live
local_artifacts_path: dist
default_cache_control: 'public, max-age=60, must-revalidate'
custom_metadata:
- path: 'assets/css/*.css'
cache_control: 'public, max-age=31536000, must-revalidate'
mime_type: 'text/css' # Optional, some default mime types are hardcoded in action.py
- path: 'assets/js/*.js'
cache_control: 'public, max-age=31536000, must-revalidate'
```