Created
October 12, 2019 14:09
-
-
Save loujaybee/1110d1d7b2e16538fbe3b0e45f86a04f to your computer and use it in GitHub Desktop.
Push A Lambda Zipped Artifact to S3 Using Github Actions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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