This repository has been archived on 2023-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
github-issue-sns-topic/.github/workflows/ship.yml
2020-11-16 19:26:43 -05:00

41 lines
987 B
YAML

name: Build & Ship
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v1
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Build Lambdas
run: |
file="create_issue"
echo "Building: $file"
cd $file
echo "Installing requirements..."
pip install -q -r requirements.txt -t .
echo "Zipping..."
zip -qq -r ../$file.zip .
cd ..
echo "Cleaning up..."
rm -rf $file
- name: Ship to S3
uses: jakejarvis/s3-sync-action@master
with:
args: --follow-symlinks --delete
env:
SOURCE_DIR: "./"
AWS_REGION: "us-east-1"
DEST_DIR: github-issues
AWS_S3_BUCKET: sumu-stacks
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}