From 531a333711c798a55a7c48670b4cbe15791b7b8b Mon Sep 17 00:00:00 2001 From: Deep Sharma Date: Tue, 8 Aug 2023 16:53:30 +1000 Subject: [PATCH 1/2] created nonproduction workflow --- .github/workflows/nonproduction.yaml | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/nonproduction.yaml diff --git a/.github/workflows/nonproduction.yaml b/.github/workflows/nonproduction.yaml new file mode 100644 index 00000000..d3513b8d --- /dev/null +++ b/.github/workflows/nonproduction.yaml @@ -0,0 +1,32 @@ +name: Deploy feature branches to nonproduction bucket + +on: + push: + branches: + - feature* + +jobs: + + build: + runs-on: ubuntu-latest + env: + BUCKET_NAME: cfst-3457-f1e2a6a829bd52b5ebb1813e1-nonprodbucket-1tnjzefavx213 + steps: + - name: Check out code + uses: actions/checkout@v2 + - name: configure aws cli + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-east-1 + - name: set up node.js + uses: actions/setup-node@v2 + with: + node-version: 14 + - name: build site + run: | + npm ci + npm run build + - name: deploy files to bucket + run: aws s3 cp public s3://${{ env.BUCKET_NAME }} --recursive --acl public-read \ No newline at end of file From 61fce494a26e9c9ca0d396e73b6f8472d1961955 Mon Sep 17 00:00:00 2001 From: Deep Sharma Date: Tue, 8 Aug 2023 16:56:10 +1000 Subject: [PATCH 2/2] added production workflow --- .github/workflows/production.yaml | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .github/workflows/production.yaml diff --git a/.github/workflows/production.yaml b/.github/workflows/production.yaml new file mode 100644 index 00000000..e69de29b