mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-24 22:45:17 +02:00
Add Winget Releaser workflow (#2036)
* Add Winget Releaser workflow * Add dependabot * Use commit hashes for versioning * Update hash
This commit is contained in:
parent
c8e86fb9eb
commit
fa80857593
6
.github/dependabot.yml
vendored
Normal file
6
.github/dependabot.yml
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "daily"
|
20
.github/workflows/winget.yml
vendored
Normal file
20
.github/workflows/winget.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
name: Publish to WinGet
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [released]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
runs-on: windows-latest # Action can only be run on windows
|
||||||
|
steps:
|
||||||
|
- name: Extract version from tag
|
||||||
|
id: extract_version
|
||||||
|
run: |
|
||||||
|
$version = [regex]::Match("${{ github.event.release.tag_name }}", "(?<=v)[\d.]+").Value
|
||||||
|
Write-Output "version=$version" >> $env:GITHUB_OUTPUT
|
||||||
|
- uses: vedantmgoyal2009/winget-releaser@c9092bc79d77d72dd54e036af65bcc8814a7e599
|
||||||
|
with:
|
||||||
|
identifier: Microsoft.OpenSSH.Beta
|
||||||
|
version: ${{ steps.extract_version.outputs.version }}
|
||||||
|
token: ${{ secrets.WINGET_TOKEN }}
|
Loading…
x
Reference in New Issue
Block a user