refactor(release): trigger via release

This commit is contained in:
Elian Doran 2025-04-11 18:27:46 +03:00
parent d020ca7d24
commit 1d5b8dbbbe
No known key found for this signature in database
2 changed files with 3 additions and 16 deletions

View File

@ -1,14 +1,7 @@
name: Release to winget name: Release to winget
on: on:
workflow_call: release:
inputs: types: [ published ]
release_tag:
description: 'Git tag to release from'
type: string
required: true
secrets:
token:
required: true
workflow_dispatch: workflow_dispatch:
inputs: inputs:
release_tag: release_tag:
@ -24,4 +17,4 @@ jobs:
with: with:
identifier: TriliumNext.Notes identifier: TriliumNext.Notes
token: ${{ secrets.token }} token: ${{ secrets.token }}
release-tag: ${{ github.event.inputs.release_tag }} release-tag: ${{ github.event.inputs.release_tag || github.event.release.tag_name }}

View File

@ -110,9 +110,3 @@ jobs:
body_path: docs/Release Notes/Release Notes/${{ github.ref }}.md body_path: docs/Release Notes/Release Notes/${{ github.ref }}.md
fail_on_unmatched_files: true fail_on_unmatched_files: true
files: upload/*.* files: upload/*.*
- name: Publish to winget
uses: ./.github/workflows/release-winget.yml
with:
release_tag: ${{ github.ref }}
token: ${{ secrets.WINGET_PAT }}