Skip to content

Commit

Permalink
fix: cd build (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
RenanLorijola committed Nov 25, 2023
1 parent b4051e6 commit 9d8fc4f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@ jobs:
node-version: 20.8
- name: install dependencies
run: yarn install
- name: build project
run: turbo run build
- name: build projects
run: yarn build

- uses: shinyinc/[email protected]
- name: sync static with s3
run: aws s3 sync apps/static s3://${{ secrets.AWS_S3_BUCKET_NAME_HOM }}
run: aws s3 sync apps/static ${{ format('s3://{0}', secrets.AWS_S3_BUCKET_NAME_HOM) }}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-east-1

- name: sync react with s3
run: aws s3 sync apps/react/dist s3://${{ secrets.AWS_S3_BUCKET_NAME_HOM }}/react
run: aws s3 sync apps/react/dist ${{ format('s3://{0}/react', secrets.AWS_S3_BUCKET_NAME_HOM) }}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-east-1

- name: sync container with s3
run: aws s3 sync apps/container/dist s3://${{ secrets.AWS_S3_BUCKET_NAME_HOM }}/app
run: aws s3 sync apps/container/dist ${{ format('s3://{0}/app', secrets.AWS_S3_BUCKET_NAME_HOM) }}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down

0 comments on commit 9d8fc4f

Please sign in to comment.