From 32f9a009d662b4d4b2d243f3f9065c2f2cddc5fc Mon Sep 17 00:00:00 2001 From: Reid Hewitt Date: Tue, 23 Apr 2024 18:57:48 -0600 Subject: [PATCH] add s3 sync --- .github/workflows/deploy.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 850c020..211d081 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,8 +1,8 @@ name: Test and Deploy on: - # pull_request: - # branches: [ main ] + pull_request: + branches: [ main ] push: branches: [main, develop] @@ -21,14 +21,14 @@ jobs: build: npm run build start: npm run dev wait-on: "http://localhost:3000" - # deploy: - # runs-on: ubuntu-22.04 - # needs: build - # steps: - # - name: Configure AWS - # 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-2 - # - run: aws s3 sync ./out s3://mchewittwedding.com \ No newline at end of file + deploy: + runs-on: ubuntu-22.04 + needs: test + steps: + - name: Configure AWS + 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-2 + - run: aws s3 sync ./out s3://mchewittwedding.com \ No newline at end of file