Skip to content

Commit 4ea214f

Browse files
feat: enhance release workflow to include tag input and conditional execution
1 parent 60fc351 commit 4ea214f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/release-builds.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Build and release executables
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: "Release tag (e.g., v1.2.3)"
8+
required: true
59
push:
610
tags:
711
- "v*"
@@ -71,6 +75,7 @@ jobs:
7175
release:
7276
runs-on: ubuntu-latest
7377
needs: [build-windows, build-linux]
78+
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
7479
steps:
7580
- name: Download artifacts
7681
uses: actions/download-artifact@v4
@@ -80,6 +85,8 @@ jobs:
8085
- name: Create GitHub Release
8186
uses: softprops/action-gh-release@v2
8287
with:
88+
tag_name: ${{ inputs.tag || github.ref_name }}
89+
target_commitish: ${{ github.sha }}
8390
files: |
8491
dist/ist-fenix-auto-enroller-windows/ist-fenix-auto-enroller.exe
8592
dist/ist-fenix-auto-enroller-linux/ist-fenix-auto-enroller

0 commit comments

Comments
 (0)