feat: add Winget publishes to CI/CD (#1299)

Co-authored-by: 三咲雅 · Misaki Masa <sxyazi@gmail.com>
This commit is contained in:
Moaid Hathot 2024-07-20 01:48:52 -07:00 committed by GitHub
parent 093c13ac22
commit 66e83f3e18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 3 deletions

View file

@ -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
View 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 }}