Skip to content

Commit

Permalink
feat: update oss release path
Browse files Browse the repository at this point in the history
  • Loading branch information
zsq1234 committed Nov 22, 2024
1 parent d546f7c commit 19b6f44
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/sync-to-oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,22 +82,22 @@ jobs:
cd docker-compose
tar -czvf ~/docker-compose.tar.gz * .[!.]*
- name: Sync univer-server-latest-docker-compose.tar.gz to OSS (latest)
- name: Sync univer-server-docker-compose-latest.tar.gz to OSS (latest)
uses: hexf00/upload-to-oss@v1
with:
source: '~/docker-compose.tar.gz'
dest: 'releases/latest/univer-server-latest-docker-compose.tar.gz'
dest: 'releases/latest/univer-server-docker-compose-latest.tar.gz'
bucket: ${{secrets.OSS_BUCKET}}
region: "oss-cn-shenzhen"
accessKeyId: ${{secrets.S3_ACCESS_KEY_ID}}
accessKeySecret: ${{secrets.S3_ACCESS_KEY_SECRET}}
if: ${{ needs.prepare.outputs.release_type == 'stable' }}

- name: Sync univer-server-v${{ needs.prepare.outputs.version }}-docker-compose.tar.gz to OSS
- name: Sync univer-server-docker-compose-v${{ needs.prepare.outputs.version }}.tar.gz to OSS
uses: hexf00/upload-to-oss@v1
with:
source: '~/docker-compose.tar.gz'
dest: 'releases/v${{ needs.prepare.outputs.version }}/univer-server-v${{ needs.prepare.outputs.version }}-docker-compose.tar.gz'
dest: 'releases/v${{ needs.prepare.outputs.version }}/univer-server-docker-compose-v${{ needs.prepare.outputs.version }}.tar.gz'
bucket: ${{secrets.OSS_BUCKET}}
region: "oss-cn-shenzhen"
accessKeyId: ${{secrets.S3_ACCESS_KEY_ID}}
Expand Down Expand Up @@ -188,11 +188,11 @@ jobs:
cd /tmp/sql
tar -czvf univer-sql.tar.gz *
- name: Release univer-server-latest-sql.tar.gz
- name: Release univer-server-sql-latest.tar.gz
uses: hexf00/upload-to-oss@v1
with:
source: '/tmp/sql/univer-sql.tar.gz'
dest: 'releases/latest/univer-server-latest-sql.tar.gz'
dest: 'releases/latest/univer-server-sql-latest.tar.gz'
bucket: ${{secrets.OSS_BUCKET}}
region: "oss-cn-shenzhen"
accessKeyId: ${{secrets.S3_ACCESS_KEY_ID}}
Expand All @@ -203,7 +203,7 @@ jobs:
uses: hexf00/upload-to-oss@v1
with:
source: '/tmp/sql/univer-sql.tar.gz'
dest: 'releases/v${{ needs.prepare.outputs.version }}/univer-server-v${{ needs.prepare.outputs.version }}-sql.tar.gz'
dest: 'releases/v${{ needs.prepare.outputs.version }}/univer-server-sql-v${{ needs.prepare.outputs.version }}.tar.gz'
bucket: ${{secrets.OSS_BUCKET}}
region: "oss-cn-shenzhen"
accessKeyId: ${{secrets.S3_ACCESS_KEY_ID}}
Expand Down
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ getLicenseURL="https://${_HOST}/license-manage-api/license/cli-download?type=1"
getLicenseKeyURL="https://${_HOST}/license-manage-api/license/cli-download?type=2"

if [ "$_VERSION" == "latest" ]; then
downloadURL="https://release-univer.oss-cn-shenzhen.aliyuncs.com/releases/latest/universer-latest-docker-compose.tar.gz"
downloadURL="https://release-univer.oss-cn-shenzhen.aliyuncs.com/releases/latest/univer-server-docker-compose-latest.tar.gz"
else
version=${_VERSION#v}
downloadURL="https://release-univer.oss-cn-shenzhen.aliyuncs.com/releases/v${version}/universer-v${version}-docker-compose.tar.gz"
downloadURL="https://release-univer.oss-cn-shenzhen.aliyuncs.com/releases/v${version}/univer-server-docker-compose-v${version}.tar.gz"
fi


Expand Down

0 comments on commit 19b6f44

Please sign in to comment.