Files
Gitcloned-WSL2-Distro-Manager/.github/workflows/winget.yml
2023-02-12 18:32:21 +01:00

28 lines
774 B
YAML

name: Publish to WinGet
on:
release:
types: [released]
workflow_dispatch:
inputs:
version:
description: 'Version (e.g. v1.5.0)'
jobs:
publish:
runs-on: windows-latest
steps:
- name: Get version
id: get_version
run: |
$VERSION="${{ github.event.release.name || inputs.version }}" -replace '^.*v'
"APP_VER=$VERSION.0" >> $env:GITHUB_OUTPUT
echo VERSION:$VERSION
echo APP_VER:$APP_VER
shell: pwsh
- uses: vedantmgoyal2009/winget-releaser@v2
with:
identifier: Bostrot.WSLManager
version: ${{ steps.get_version.outputs.APP_VER }}
installers-regex: '.(msi|msix|appx)(bundle){0,1}$'
token: ${{ secrets.WINGET_TOKEN }}