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: on:
push: push:
@ -126,7 +126,7 @@ jobs:
name: yazi-${{ matrix.target }}.snap name: yazi-${{ matrix.target }}.snap
path: yazi-${{ matrix.target }}.snap path: yazi-${{ matrix.target }}.snap
release: draft:
permissions: permissions:
contents: write contents: write
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -136,7 +136,7 @@ jobs:
with: with:
merge-multiple: true merge-multiple: true
- name: Release - name: Draft
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
with: 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 }}