From 98a36db68f39604792fc86c0b85047ef211d9ae7 Mon Sep 17 00:00:00 2001 From: Misael Date: Wed, 5 Apr 2023 16:57:09 -0600 Subject: [PATCH 1/2] Create nonproduction.yaml --- .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..97454b4d --- /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-f64287c64a4c4d0e65d882b8dd8a-prodbucket-hpngznjb4o5tInfo + 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 b02804df43765597f87322526a61cdcd3247393d Mon Sep 17 00:00:00 2001 From: Misael Date: Wed, 5 Apr 2023 17:02:51 -0600 Subject: [PATCH 2/2] Update nonproduction.yaml --- .github/workflows/nonproduction.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nonproduction.yaml b/.github/workflows/nonproduction.yaml index 97454b4d..6166047c 100644 --- a/.github/workflows/nonproduction.yaml +++ b/.github/workflows/nonproduction.yaml @@ -10,7 +10,7 @@ jobs: build: runs-on: ubuntu-latest env: - BUCKET_NAME: cfst-3457-f64287c64a4c4d0e65d882b8dd8a-prodbucket-hpngznjb4o5tInfo + BUCKET_NAME: cfst-3457-f64287c64a4c4d0e65d882b8dd8a-prodbucket-hpngznjb4o5t steps: - name: Check out code uses: actions/checkout@v2