Skip to content

Commit f90e4a5

Browse files
authored
⚡ only build GUI on push to main, releases and manuel triggers (#130)
* 🎨 add manuel workflow trigger * ⚡ only build GUI on push to main, releases and manuel triggers * 🎨 add parantheses to ensure correct evaluation
1 parent 954110a commit f90e4a5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/cdci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
branches: [main]
88
release:
99
types: [published]
10+
workflow_dispatch:
1011

1112
jobs:
1213
test:
@@ -130,6 +131,11 @@ jobs:
130131
build-executable:
131132
name: Build-exe-${{ matrix.os.label }}
132133
runs-on: ${{ matrix.os.runner }}
134+
if: |
135+
(github.event_name == 'push' && github.ref == 'refs/heads/main') ||
136+
github.event_name == 'release' ||
137+
startsWith(github.ref, 'refs/tags') ||
138+
github.event_name == 'workflow_dispatch'
133139
needs:
134140
- test
135141
- other-reports

0 commit comments

Comments
 (0)