From 5149c040d469f9140f7047fc872c543d6f70f374 Mon Sep 17 00:00:00 2001 From: Santiago Gallo Date: Mon, 23 Oct 2023 13:01:12 -0500 Subject: [PATCH 1/3] created nonproduction workflow --- .github/workflows/nonproduction.yaml | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 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..8d676d44 --- /dev/null +++ b/.github/workflows/nonproduction.yaml @@ -0,0 +1,31 @@ +name: Deploy feature branches to nonproduction bucket +on: + push: + branches: + - feature* +jobs: + build: + runs-on: ubuntu-latest + env: + BUCKET_NAME: cfst-3457-7e4918e34287cd70b855b308c-nonprodbucket-1qd1lcrp70u0k + 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: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: 14 + - name: Build + run: | + npm ci + npm run build + - name: Deploy bundle to bucket + run: | + echo 'copying files to s3 bucket' + aws s3 cp public s3://${{ env.BUCKET_NAME }}/ --recursive \ No newline at end of file From 858585d371366061a173e0e688c8d9be92cc183f Mon Sep 17 00:00:00 2001 From: Santiago Gallo Date: Mon, 23 Oct 2023 13:18:19 -0500 Subject: [PATCH 2/3] added production workflow --- .github/workflows/producion.yaml | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/producion.yaml diff --git a/.github/workflows/producion.yaml b/.github/workflows/producion.yaml new file mode 100644 index 00000000..cdf68a9f --- /dev/null +++ b/.github/workflows/producion.yaml @@ -0,0 +1,33 @@ +name: Deploy to production + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + env: + BUCKET_NAME: cfst-3457-7e4918e34287cd70b855b308c9a6-prodbucket-nsexcdkffy4h + 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: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: 14 + - name: Build + run: | + npm ci + npm run build + - name: Deploy bundle to bucket + run: | + echo 'copying files to s3 bucket' + aws s3 cp public s3://${{ env.BUCKET_NAME }}/ --recursive \ No newline at end of file From f185dacaef3cb736146675fdbd32dcddb332cfdf Mon Sep 17 00:00:00 2001 From: Santiago Gallo Date: Mon, 23 Oct 2023 13:38:11 -0500 Subject: [PATCH 3/3] added launch date header --- src/pages/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/index.js b/src/pages/index.js index e72936a2..a1724980 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -20,6 +20,7 @@ const IndexPage = () => { Cloud Coffee +

Launch Date Announced!!!

Join Our Mailing List!