From 9019c96a5563c05c8a09c102a00ecebbb758b5d2 Mon Sep 17 00:00:00 2001 From: ThisIsDara <1380katana@gmail.com> Date: Mon, 4 May 2026 08:02:22 +0330 Subject: [PATCH] Fix workflow: run release on manual or tag --- .github/workflows/build.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b791d89..fe52a3e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,11 @@ on: tags: - 'v*' workflow_dispatch: + inputs: + release: + description: 'Create release' + required: false + default: 'true' jobs: build: @@ -26,22 +31,14 @@ jobs: name: mhr-cfw-go path: mhr-cfw-go.exe - release: - needs: build - runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/') - permissions: - contents: write - steps: - - uses: actions/checkout@v4 - - - name: Download artifact + - name: Download for release uses: actions/download-artifact@v4 with: name: mhr-cfw-go path: . - name: Release + if: github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/') uses: softprops/action-gh-release@v2 with: files: mhr-cfw-go.exe