Add ci job for releasing to winget

This commit is contained in:
Armin Schrenk
2024-02-08 17:34:02 +01:00
parent 42d3dbaa23
commit e1cca6427c
2 changed files with 45 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
name: Publish MSI Installer to WinGet Community Repo
on:
workflow_dispatch:
inputs:
tag:
description: 'Release tag'
required: true
jobs:
winget:
name: Publish winget package
runs-on: windows-latest
steps:
- name: Sync winget-pkgs fork
run: |
gh auth login --with-token $env:SYNC_TOKEN
gh repo sync cryptomator/winget-pkgs -b master --force
env:
SYNC_TOKEN: ${{ secrets.CRYPTOBOT_WINGET_TOKEN }}
- name: Submit package
uses: vedantmgoyal2009/winget-releaser@v2
with:
identifier: Cryptomator.Cryptomator
release-tag: ${{ inputs.tag }}
installers-regex: '\.msi$'
token: ${{ secrets.CRYPTOBOT_WINGET_TOKEN }}