refactor(workflow): 使用GitHub Action替换七牛云上传脚本

- 移除手动下载和配置qshell的步骤
- 采用cumt-ro
This commit is contained in:
2026-01-06 22:34:48 +08:00
parent c2d35a95c9
commit f73076b3d7

View File

@@ -51,18 +51,15 @@ jobs:
run: go build -o ./logic_${{ needs.prepare-version.outputs.build_version }} -v ./logic
- name: 上传到七牛云
run: |
# 下载 qshell
wget -q https://github.com/qiniu/qshell/releases/download/v2.9.0/qshell-v2.9.0-linux-amd64.tar.gz
tar -zxf qshell-v2.9.0-linux-amd64.tar.gz
chmod +x qshell-v2.9.0-linux-amd64
# 配置账号
./qshell-v2.9.0-linux-amd64 account ${{ secrets.QINIU_AK }} ${{ secrets.QINIU_SK }}
# 上传文件 (z2 区域使用 up-z2.qiniup.com)
FILE_NAME="logic_${{ needs.prepare-version.outputs.build_version }}"
./qshell-v2.9.0-linux-amd64 fput ${{ secrets.QINIU_BUCKET_NAME }} releases/${FILE_NAME} ./${FILE_NAME} true
uses: cumt-robin/upload-to-qiniu-action@v1
with:
access_key: ${{ secrets.QINIU_AK }}
secret_key: ${{ secrets.QINIU_SK }}
bucket: ${{ secrets.QINIU_BUCKET_NAME }}
region: z2
local_dir: .
upload_prefix: releases/
exclude: "**/*.go"
- name: Upload Build Artifact
uses: actions/upload-artifact@v4