ci: agent-device release 支持手动触发(workflow_dispatch 输入 tag)
agent-device release / release (push) Waiting to run
agent-device release / release (push) Waiting to run
This commit is contained in:
@@ -5,6 +5,11 @@ on:
|
|||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'agent-device-v*'
|
- 'agent-device-v*'
|
||||||
|
workflow_dispatch: # 兜底:页面上手动跑,填一个已存在的标签
|
||||||
|
inputs:
|
||||||
|
tag:
|
||||||
|
description: '要发布的标签(已存在),如 agent-device-v0.1.0'
|
||||||
|
required: true
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # action-gh-release 需要建 release、传附件
|
contents: write # action-gh-release 需要建 release、传附件
|
||||||
@@ -28,8 +33,8 @@ jobs:
|
|||||||
- name: 发布 Release
|
- name: 发布 Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ github.ref_name }}
|
name: ${{ inputs.tag || github.ref_name }}
|
||||||
tag_name: ${{ github.ref_name }}
|
tag_name: ${{ inputs.tag || github.ref_name }}
|
||||||
files: device/bin/agent-device-*
|
files: device/bin/agent-device-*
|
||||||
fail_on_unmatched_files: true
|
fail_on_unmatched_files: true
|
||||||
body: |
|
body: |
|
||||||
|
|||||||
Reference in New Issue
Block a user