Skip to content

Commit

Permalink
Merge pull request #648 from trheyi/main
Browse files Browse the repository at this point in the history
refactor: Update Docker image versions and artifact upload actions
  • Loading branch information
trheyi committed Jul 4, 2024
2 parents 1d2a4aa + 1dcfad5 commit 3e390ca
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
# paths:
# - ".github/workflows/docker.yml"
workflow_run:
workflows: ["Build Linux Dev"]
workflows: ["Build Linux Artifacts"]
types:
- completed

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
42 changes: 21 additions & 21 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e390ca

Please sign in to comment.