From c3789536d84fd28271e8d9b27cde0c9633ba60ba Mon Sep 17 00:00:00 2001 From: insleker Date: Sat, 11 Apr 2026 21:42:51 +0800 Subject: [PATCH] ci: fix release upload job and add manual dispatch --- .github/workflows/release.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2e0a3ea..6e051e1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -4,6 +4,12 @@ on: release: types: - published + workflow_dispatch: + inputs: + release_tag: + description: Release tag to upload assets to (e.g. v1.0.0) + required: true + type: string pull_request: paths: - .github/workflows/release.yaml @@ -96,6 +102,8 @@ jobs: sha256sum * > SHA256SUMS.txt - name: Upload assets to release - env: - GH_TOKEN: ${{ github.token }} - run: gh release upload "${{ github.ref_name }}" release-assets/* --clobber + uses: softprops/action-gh-release@v2 + with: + files: release-assets/* + fail_on_unmatched_files: true + tag_name: ${{ github.event_name == 'workflow_dispatch' && inputs.release_tag || github.ref_name }}