Skip to content

6.6.1

6.6.1 #7

Workflow file for this run

name: Publish to Winget
on:
release:
types: [released]
workflow_dispatch:
inputs:
package_version:
description: 'The version number of the package'
required: true
default: ''
type: string
defaults:
run:
shell: |
pwsh -noninteractive -command "try {{ $ErrorActionPreference='Stop'; . '{0}' }} catch {{ Write-Error ""FAILED: $_""; throw; }} if ((Test-Path -LiteralPath variable:\LASTEXITCODE)) {{ exit $LASTEXITCODE }}"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Print Package Version
run: |
Write-Host "Using Package Version ${{ github.event.release.tag_name || github.event.inputs.package_version }}"
- uses: vedantmgoyal2009/winget-releaser@v2
with:
identifier: radj307.volume-control
version: ${{ github.event.release.tag_name || github.event.inputs.package_version }}
installers-regex: '-Installer_{0,1}v{0,1}.*\.exe$'
token: ${{ secrets.WINGET_TOKEN }}