Update winget ci action

pull/330/head
aandrew-me 10 months ago
parent 9e45354517
commit f7ce552baa

@ -2,12 +2,26 @@ name: Publish to WinGet
on:
release:
types: [released]
workflow_dispatch:
jobs:
publish:
runs-on: windows-latest
steps:
- name: Get latest release
id: get_latest
uses: actions/github-script@v7
with:
script: |
const latest = await github.rest.repos.getLatestRelease({
owner: context.repo.owner,
repo: context.repo.repo
});
core.setOutput("tag", latest.data.tag_name);
- uses: vedantmgoyal9/winget-releaser@main
with:
identifier: Package.Identifier
installers-regex: '\.msi$' # Only .msi files
identifier: aandrew-me.ytDownloader
installers-regex: '\.msi$'
token: ${{ secrets.WINGET_TOKEN }}
release-tag: ${{ steps.get_latest.outputs.tag }}

Loading…
Cancel
Save