mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-24 14:55:37 +00:00
27 lines
867 B
YAML
27 lines
867 B
YAML
name: Publish release to WinGet
|
|
on:
|
|
workflow_run:
|
|
workflows: ["Publish Release"]
|
|
types: [completed]
|
|
workflow_dispatch:
|
|
jobs:
|
|
publish:
|
|
runs-on: windows-latest
|
|
if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
|
|
steps:
|
|
- name: Get release tag
|
|
id: tag
|
|
shell: bash
|
|
run: |
|
|
TAG=$(gh api repos/${{ github.repository }}/releases/latest --jq '.tag_name')
|
|
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
- uses: vedantmgoyal9/winget-releaser@v2
|
|
with:
|
|
identifier: Webadderall.Recordly
|
|
installers-regex: 'windows\-x64\.exe$'
|
|
version: ${{ steps.tag.outputs.tag }}
|
|
release-tag: ${{ steps.tag.outputs.tag }}
|
|
token: ${{ secrets.WINGET_ACC_TOKEN }}
|