From bb32efa7a6301d7461c79173ddef20f375a7983c Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Sun, 3 Nov 2019 18:29:35 -0500 Subject: [PATCH] Create Push Workflows --- .../workflows/{push.yml => push_develop.yml} | 8 ++++-- .github/workflows/push_production.yml | 25 +++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) rename .github/workflows/{push.yml => push_develop.yml} (87%) create mode 100644 .github/workflows/push_production.yml diff --git a/.github/workflows/push.yml b/.github/workflows/push_develop.yml similarity index 87% rename from .github/workflows/push.yml rename to .github/workflows/push_develop.yml index 7b03c91..319e8ed 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push_develop.yml @@ -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 diff --git a/.github/workflows/push_production.yml b/.github/workflows/push_production.yml new file mode 100644 index 0000000..826b5b4 --- /dev/null +++ b/.github/workflows/push_production.yml @@ -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 }} \ No newline at end of file