Skip to content

Commit

Permalink
chore(ci): fix uploading to S3
Browse files Browse the repository at this point in the history
  • Loading branch information
pkorchak committed May 22, 2023
1 parent 5432f4b commit d535d44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
env:
CI: true
- name: Upload to S3 bucket
if: github.branch == 'main'
if: github.ref_name == 'main'
uses: jakejarvis/s3-sync-action@master
with:
args: --delete
Expand All @@ -43,3 +43,4 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
SOURCE_DIR: ./dist/form-builder-demo/

0 comments on commit d535d44

Please sign in to comment.