From cef680c439c697cff21cd60a965a4e76bd4df656 Mon Sep 17 00:00:00 2001 From: atleticomadrdid07 Date: Fri, 10 Jan 2025 12:25:57 -0600 Subject: [PATCH 1/2] created nonproduction workflow --- .github/workflows/nonproduction.yaml | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 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..7daa71ef --- /dev/null +++ b/.github/workflows/nonproduction.yaml @@ -0,0 +1,33 @@ +name: Deploy feature branches to nonproduction bucket + +on: + push: + branches: + - feature/* + + +jobs: + build: + runs-on: ubuntu-latest + env: + BUCKET_NAME: cfst-3457-8520db87b12b14dd4c6c641b1d-nonprodbucket-yiqfxlnc267i + steps: + - name: checkout 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 site + run: aws s3 cp public s3://${{ env.BUCKET_NAME }}/ --recursive --acl public-read + \ No newline at end of file From 064e5e3541737916ef1048556b4f8fb90de1b9a3 Mon Sep 17 00:00:00 2001 From: atleticomadrid07 <76886754+atleticomadrid07@users.noreply.github.com> Date: Fri, 10 Jan 2025 12:30:54 -0600 Subject: [PATCH 2/2] Update nonproduction.yaml --- .github/workflows/nonproduction.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nonproduction.yaml b/.github/workflows/nonproduction.yaml index 7daa71ef..994eb781 100644 --- a/.github/workflows/nonproduction.yaml +++ b/.github/workflows/nonproduction.yaml @@ -1,6 +1,7 @@ name: Deploy feature branches to nonproduction bucket on: + workflow_dispatch: push: branches: - feature/* @@ -30,4 +31,4 @@ jobs: npm run build - name: deploy site run: aws s3 cp public s3://${{ env.BUCKET_NAME }}/ --recursive --acl public-read - \ No newline at end of file +