ci: add workflow_dispatch trigger for manual runs
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:
1 file changed
+3
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user