ci: add workflow_dispatch trigger for manual runs
CI / test (push) Successful in 9m40s
CI / build (push) Successful in 9m59s
CI / release (push) Skipped

Lets release job run on workflow_dispatch in addition to tag pushes.

Artifact name falls back to 'manual' when triggered outside a tag context.
This commit is contained in:
fristy committed 2026-09-05 00:31:24 +03:00
1 parent acc34d9543
commit a84fabcd3f
1 file changed
+3 -2
+3 -2
View File
@@ -9,6 +9,7 @@ on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
@@ -86,7 +87,7 @@ jobs:
needs:
- build
- test
if: startsWith(gitea.ref, 'refs/tags/v')
if: startsWith(gitea.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch'
runs-on: windows-latest
steps:
- name: Checkout
@@ -119,7 +120,7 @@ jobs:
- name: Upload release artifacts
uses: actions/upload-artifact@v4
with:
name: rgb-led-strip-controller-${{ gitea.ref_name }}-win-x64
name: rgb-led-strip-controller-${{ gitea.ref_name || 'manual' }}-win-x64
path: |
src/RgbLedStripController/bin/Release/net8.0-windows10.0.19041.0/win-x64/publish/RgbLedStripController.exe
src/RgbLedStripController/bin/Release/net8.0-windows10.0.19041.0/win-x64/publish/RgbLedStripController.pdb