Skip to content

Commit

Permalink
fix configuration for s3 deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ganning127 committed Aug 25, 2024
1 parent 3629077 commit e17a006
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/veda-auth-portal-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,24 @@ jobs:

- name: Build
run: npm run build
- name: Deploy to S3
uses: jakejarvis/s3-sync-action@master

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SOURCE_DIR: 'dist'
role-to-assume: ${{ secrets.DEPLOYMENT_ROLE_ARN }}
role-session-name: "github-${{ github.repository }}-${{ github.run_id }}"
aws-region: "us-east-2"

- name: Deploy app build to S3 bucket
run: aws s3 sync ./dist/ s3://veda-auth-central-portal --delete

# - name: Deploy to S3
# uses: jakejarvis/s3-sync-action@master
# with:
# args: --acl public-read --follow-symlinks --delete
# env:
# AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# SOURCE_DIR: 'dist'

0 comments on commit e17a006

Please sign in to comment.