mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-05-12 01:49:42 +08:00
chore(ci): 调整 WinGet 发布配置
## 修改内容 - 修正 WinGet workflow 中 installers-regex,使其匹配实际 Release 产物名称 ## 修改原因 - 原匹配规则无法匹配 GoNavi-windows-amd64.exe / GoNavi-windows-arm64.exe - 避免 WinGet 发布流程找不到安装包导致失败 ## 影响范围 - CI / WinGet 发布流程
This commit is contained in:
11
.github/workflows/release-winget.yml
vendored
11
.github/workflows/release-winget.yml
vendored
@@ -1,13 +1,15 @@
|
||||
name: Publish to WinGet
|
||||
on:
|
||||
release:
|
||||
types: [released]
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
release_tag:
|
||||
required: true
|
||||
description: 'Tag of release you want to publish'
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: windows-latest
|
||||
@@ -15,7 +17,6 @@ jobs:
|
||||
- uses: vedantmgoyal9/winget-releaser@v2
|
||||
with:
|
||||
identifier: Syngnat.GoNavi
|
||||
installers-regex: 'windows-(amd64|arm64)\.exe$'
|
||||
release-tag: ${{ inputs.release_tag || github.event.release.tag_name }}
|
||||
# Make sure that the WINGET_TOKEN has the permissions for the repo, workflow, and pull_request.
|
||||
installers-regex: 'GoNavi-windows-(amd64|arm64)\.exe$'
|
||||
release-tag: ${{ inputs.release_tag || github.ref_name }}
|
||||
token: ${{ secrets.WINGET_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user