Skip to content

Commit

Permalink
ci: fix cdn deploy workflow overriding PATH var
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Feb 5, 2024
1 parent 3c9aa71 commit 701b023
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/cdn_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,8 @@ jobs:
- name: Upload to S3
env:
# latest for main branch, else tag name
PATH: ${{ github.ref_name == 'main' && 'latest' || github.ref_name }}
S3_PATH: ${{ github.ref_name == 'main' && 'latest' || github.ref_name }}
run: |
# Install AWS CLI
apt-get update
apt-get install -y awscli --no-install-recommends
# Push to S3
aws s3 sync ${{ github.workspace }}/dist/index.js \
s3://${{ vars.S3_BUCKET_NAME }}/ui/${{ env.PATH }}/core.js
s3://${{ vars.S3_BUCKET_NAME }}/ui/${{ env.S3_PATH }}/core.js

0 comments on commit 701b023

Please sign in to comment.