Skip to content

Commit

Permalink
add s3 sync
Browse files Browse the repository at this point in the history
  • Loading branch information
rshewitt committed Apr 24, 2024
1 parent 0a11c99 commit 32f9a00
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Test and Deploy

on:
# pull_request:
# branches: [ main ]
pull_request:
branches: [ main ]
push:
branches: [main, develop]

Expand All @@ -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
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

0 comments on commit 32f9a00

Please sign in to comment.