From 3cba1609d1bb13d5df82047189402ff093036860 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 3 Feb 2026 15:30:51 +0000 Subject: [PATCH] Add workflow_dispatch for manual release from Actions UI - Add workflow_dispatch trigger with optional release_tag input - Release job runs on tag push OR manual dispatch with tag specified - tag_name is set from input or ref_name for consistent behavior https://claude.ai/code/session_01BNCMS3DQ4UJAELZsGytzwg --- .github/workflows/build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9ec31f4..36c92a7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,12 @@ on: tags: ["v*"] pull_request: branches: [main] + workflow_dispatch: + inputs: + release_tag: + description: "Tag name for release (e.g. v1.0.0). Leave empty to build without releasing." + required: false + default: "" jobs: unit-test: @@ -79,7 +85,7 @@ jobs: release: needs: [build, integration-test] - if: startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.ref, 'refs/tags/v') || (github.event_name == 'workflow_dispatch' && github.event.inputs.release_tag != '') runs-on: ubuntu-latest permissions: contents: write @@ -100,6 +106,7 @@ jobs: - name: Create GitHub Release uses: softprops/action-gh-release@v2 with: + tag_name: ${{ github.event.inputs.release_tag || github.ref_name }} generate_release_notes: true files: | ./rpms/*.rpm