mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 10:59:28 +08:00
Merge pull request #2461 from ONLYOFFICE/master
Merge master into hotfix/v7.4.1
This commit is contained in:
10
.github/workflows/ci-upload-help.yml
vendored
10
.github/workflows/ci-upload-help.yml
vendored
@ -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: |
|
||||
@ -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}/*"
|
||||
|
||||
Reference in New Issue
Block a user