From 1dcfad569520587ca9476b8738eb1dcaa99ad26b Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 4 Jul 2024 12:39:26 +0800 Subject: [PATCH] refactor: Update Docker image versions and artifact upload actions --- .github/workflows/build-docker.yml | 2 +- .github/workflows/build-linux.yml | 1 - .github/workflows/build-macos.yml | 42 +++++++++++++++--------------- 3 files changed, 22 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 683e9d379a..c12960ce93 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -6,7 +6,7 @@ on: # paths: # - ".github/workflows/docker.yml" workflow_run: - workflows: ["Build Linux Dev"] + workflows: ["Build Linux Artifacts"] types: - completed diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index ec0e6877c0..1ba5df3a65 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -30,7 +30,6 @@ jobs: REGION: na-siliconvalley run: | /python3/venv/bin/coscmd config -a $SECRET_ID -s $SECRET_KEY -b $BUCKET -r $REGION - echo "hello world" > /data/hello.txt - name: Build run: | diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index 2ce578b4b9..ca858b5f9d 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -108,27 +108,27 @@ jobs: mv dist/release/yao-$VERSION-dev-darwin-arm64 dist/release/yao-$VERSION-unstable-darwin-arm64 mv dist/release/yao-$VERSION-dev-darwin-amd64 dist/release/yao-$VERSION-unstable-darwin-amd64 - - name: Push arm64 To Silicon Valley - uses: TencentCloud/cos-action@v1 - with: - secret_id: ${{ secrets.COS_ID }} - secret_key: ${{ secrets.COS_KEY }} - cos_bucket: release-sv-1252011659 - cos_region: na-siliconvalley - local_path: dist/release/yao-${{ env.VERSION }}-unstable-darwin-arm64 - remote_path: /archives/yao-${{ env.VERSION }}-unstable-darwin-arm64 - clean: false - - - name: Push amd64 To Silicon Valley - uses: TencentCloud/cos-action@v1 - with: - secret_id: ${{ secrets.COS_ID }} - secret_key: ${{ secrets.COS_KEY }} - cos_bucket: release-sv-1252011659 - cos_region: na-siliconvalley - local_path: dist/release/yao-${{ env.VERSION }}-unstable-darwin-amd64 - remote_path: /archives/yao-${{ env.VERSION }}-unstable-darwin-amd64 - clean: false + # - name: Push arm64 To Silicon Valley + # uses: TencentCloud/cos-action@v1 + # with: + # secret_id: ${{ secrets.COS_ID }} + # secret_key: ${{ secrets.COS_KEY }} + # cos_bucket: release-sv-1252011659 + # cos_region: na-siliconvalley + # local_path: dist/release/yao-${{ env.VERSION }}-unstable-darwin-arm64 + # remote_path: /archives/yao-${{ env.VERSION }}-unstable-darwin-arm64 + # clean: false + + # - name: Push amd64 To Silicon Valley + # uses: TencentCloud/cos-action@v1 + # with: + # secret_id: ${{ secrets.COS_ID }} + # secret_key: ${{ secrets.COS_KEY }} + # cos_bucket: release-sv-1252011659 + # cos_region: na-siliconvalley + # local_path: dist/release/yao-${{ env.VERSION }}-unstable-darwin-amd64 + # remote_path: /archives/yao-${{ env.VERSION }}-unstable-darwin-amd64 + # clean: false - name: Archive production artifacts uses: actions/upload-artifact@v4