ci: build CLI on master pushes
CLI Build / build (push) Failing after 2s
Release / deploy (push) Successful in 3m56s

This commit is contained in:
loveuer
2026-09-21 00:58:05 -07:00
parent a58990ce66
commit 6895d98606
2 changed files with 8 additions and 15 deletions
+7 -14
View File
@@ -1,26 +1,19 @@
name: CLI Release name: CLI Build
on: on:
push: push:
tags: branches:
- "v*" - master
jobs: jobs:
release: build:
runs-on: tencent-local runs-on: tencent-local
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build CLI binaries - name: Build CLI binaries
run: VERSION=${{ github.ref_name }} ./scripts/build-cli.sh run: ./scripts/build-cli.sh
- name: Publish Gitea release - name: Verify checksums
uses: https://gitea.com/actions/gitea-release-action@v1.3.7 run: cd dist && sha256sum -c checksums.txt
with:
token: ${{ secrets.RELEASE_TOKEN }}
files: |
dist/ufile-cli_*
dist/checksums.txt
+1 -1
View File
@@ -39,7 +39,7 @@ printf '%s\n' "$UFILE_PASSWORD" | \
make cli-dist make cli-dist
``` ```
产物位于 `dist/`,覆盖 Linux、macOS 和 Windows 的 amd64/arm64,并附带 `checksums.txt`。推送 `v*` 标签会通过 Gitea Actions 创建 Release;需要预先配置具有仓库发布权限的 `RELEASE_TOKEN` secret。 产物位于 `dist/`,覆盖 Linux、macOS 和 Windows 的 amd64/arm64,并附带 `checksums.txt`。推送 `master` 分支时,Gitea Actions 会构建全部 CLI 产物并校验校验和。
## 运行 ## 运行