ci: build CLI on master pushes
This commit is contained in:
@@ -1,26 +1,19 @@
|
||||
name: CLI Release
|
||||
name: CLI Build
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
release:
|
||||
build:
|
||||
runs-on: tencent-local
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Build CLI binaries
|
||||
run: VERSION=${{ github.ref_name }} ./scripts/build-cli.sh
|
||||
run: ./scripts/build-cli.sh
|
||||
|
||||
- name: Publish Gitea release
|
||||
uses: https://gitea.com/actions/gitea-release-action@v1.3.7
|
||||
with:
|
||||
token: ${{ secrets.RELEASE_TOKEN }}
|
||||
files: |
|
||||
dist/ufile-cli_*
|
||||
dist/checksums.txt
|
||||
- name: Verify checksums
|
||||
run: cd dist && sha256sum -c checksums.txt
|
||||
|
||||
Reference in New Issue
Block a user