Skip to content

Commit

Permalink
Fix online help uploading (#2457)
Browse files Browse the repository at this point in the history
  • Loading branch information
IskandarKurbonov authored Jul 3, 2023
1 parent 251d9b0 commit 1af3eba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci-upload-help.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
run: |
BRANCH_NAME=${GITHUB_REF#refs/heads/}
export TAG=${BRANCH_NAME#*/}
echo "PATH=/install/desktop/editors/help/$TAG/apps" >> $GITHUB_OUTPUT
echo "URI=/install/desktop/editors/help/$TAG/apps" >> $GITHUB_OUTPUT
- name: Build
run: |
Expand All @@ -59,19 +59,19 @@ jobs:
- name: Upload
env:
PATH: ${{steps.tag-dir.outputs.PATH}}
URI: ${{steps.tag-dir.outputs.URI}}
run: |
aws s3 sync ./web-apps/deploy/web-apps/apps/ \
${{secrets.AWS_BUCKET_URL}}${PATH} \
${{secrets.AWS_BUCKET_URL}}${URI} \
--acl public-read \
--metadata-directive REPLACE
- name: Invalidate AWS CLOUDFRONT cache
env:
PATH: ${{steps.tag-dir.outputs.PATH}}
URI: ${{steps.tag-dir.outputs.URI}}
run: |
aws cloudfront create-invalidation \
--distribution-id ${{ secrets.AWS_DISTRIBUTION_ID }} \
--paths \
"${PATH}/*"
"${URI}/*"

0 comments on commit 1af3eba

Please sign in to comment.