Skip to content

Instantly share code, notes, and snippets.

@loujaybee
Created October 12, 2019 14:09
Show Gist options
  • Save loujaybee/1110d1d7b2e16538fbe3b0e45f86a04f to your computer and use it in GitHub Desktop.
Save loujaybee/1110d1d7b2e16538fbe3b0e45f86a04f to your computer and use it in GitHub Desktop.
Push A Lambda Zipped Artifact to S3 Using Github Actions
- name: Make artifact directory
run: mkdir -p ./artifacts/${{ github.repository }}
- name: Create Zip File
uses: montudor/[email protected]
with:
args: zip -r ./artifacts/${{ github.repository }}/${{ github.sha }}.zip ./src
- name: Push Zip to S3
uses: jakejarvis/[email protected]
env:
SOURCE_DIR: './artifacts'
AWS_REGION: 'eu-central-1'
AWS_S3_BUCKET: 'zipped-lambda-artifacts'
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment