Create Push Workflows

This commit is contained in:
Layla 2019-11-03 18:29:35 -05:00
parent 8e28e37ec2
commit bb32efa7a6
2 changed files with 31 additions and 2 deletions

View File

@ -1,7 +1,11 @@
name: Push to S3
name: Push Develop Release
on:
push:
branches-ignore:
- develop
on: ['push']
jobs:
build:
runs-on: ubuntu-latest

25
.github/workflows/push_production.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Push Production Release
on:
push:
branches:
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v1
- name: Ship to S3
uses: jakejarvis/s3-sync-action@master
with:
args: --follow-symlinks --delete
env:
SOURCE_DIR: cloudformation
AWS_REGION: "us-east-1"
DEST_DIR: nakama/production/cloudformation
AWS_S3_BUCKET: sumu-stacks
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}