mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
feat: add Winget publishes to CI/CD (#1299)
Co-authored-by: 三咲雅 · Misaki Masa <sxyazi@gmail.com>
This commit is contained in:
parent
093c13ac22
commit
66e83f3e18
2 changed files with 23 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
name: Release
|
||||
name: Draft
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
@ -126,7 +126,7 @@ jobs:
|
|||
name: yazi-${{ matrix.target }}.snap
|
||||
path: yazi-${{ matrix.target }}.snap
|
||||
|
||||
release:
|
||||
draft:
|
||||
permissions:
|
||||
contents: write
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -136,7 +136,7 @@ jobs:
|
|||
with:
|
||||
merge-multiple: true
|
||||
|
||||
- name: Release
|
||||
- name: Draft
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
20
.github/workflows/publish.yml
vendored
Normal file
20
.github/workflows/publish.yml
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
name: Publish
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
winget:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
merge-multiple: true
|
||||
|
||||
- name: Publish to Winget
|
||||
uses: vedantmgoyal9/winget-releaser@main
|
||||
with:
|
||||
identifier: sxyazi.yazi
|
||||
installers-regex: 'yazi-(x86_64|aarch64)-pc-windows-msvc\.zip$'
|
||||
token: ${{ secrets.WINGET_TOKEN }}
|
||||
Loading…
Add table
Reference in a new issue