Skip to content

GitHub action to upload and deploy S3 artifacts

Notifications You must be signed in to change notification settings

moneymeets/action-s3-artifact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

action-s3-artifact

GitHub action to upload and deploy S3 artifacts

Usage

See action.yml.

Upload:

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

  - 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:

# s3-artifact-config.yml

target_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'

About

GitHub action to upload and deploy S3 artifacts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages