From 135fef54c5d38c2fb7c52f21c59258ec8eb01f47 Mon Sep 17 00:00:00 2001 From: Hakan Seven Date: Fri, 24 Apr 2026 02:12:22 +0300 Subject: [PATCH] ci: support upload_tag input on workflow_dispatch Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/release.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 925021543..6350b87b1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,10 @@ on: release: types: [published] workflow_dispatch: + inputs: + upload_tag: + description: 'Release tag to upload assets to (e.g. v0.1.6)' + required: false jobs: build-flatpak: @@ -104,11 +108,12 @@ jobs: mv H7CAD*.AppImage H7CAD.AppImage - name: Upload AppImage to release - if: github.event_name == 'release' + if: github.event_name == 'release' || inputs.upload_tag != '' env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - gh release upload ${{ github.ref_name }} H7CAD.AppImage --clobber --repo ${{ github.repository }} + TAG=${{ github.event_name == 'release' && github.ref_name || inputs.upload_tag }} + gh release upload $TAG H7CAD.AppImage --clobber --repo ${{ github.repository }} build-windows: runs-on: windows-latest