Skip to content

Commit 96797b2

Browse files
Conditionally upload conan package.
1 parent 43f8bd1 commit 96797b2

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
name: Build
22

33
on:
4-
workflow_dispatch:
54
push:
5+
workflow_dispatch:
6+
inputs:
7+
force_deployment:
8+
description: 'Force Conan package deploy'
9+
required: true
10+
default: true
11+
type: boolean
12+
613

714
jobs:
815
build:
@@ -59,7 +66,7 @@ jobs:
5966
if: matrix.config.os == 'windows-2022' || matrix.config.os == 'windows-2019' || matrix.config.os == 'ubuntu-22.04'
6067
uses: actions/setup-python@v5
6168
with:
62-
python-version: '3.10'
69+
python-version: '3.12'
6370
architecture: 'x64'
6471

6572
- name: Set Python version
@@ -162,9 +169,9 @@ jobs:
162169

163170
deploy:
164171
needs: build
172+
if: ${{ github.event.inputs.force_deployment == 'true' || github.ref == 'refs/heads/develop' }}
165173
strategy:
166174
fail-fast: false
167-
max-parallel: 1
168175
matrix:
169176
build_type: ['Debug', 'Release', 'RelWithDebInfo']
170177
config:
@@ -216,7 +223,7 @@ jobs:
216223
if: matrix.config.os == 'windows-2022' || matrix.config.os == 'windows-2019' || matrix.config.os == 'ubuntu-22.04'
217224
uses: actions/setup-python@v5
218225
with:
219-
python-version: '3.10'
226+
python-version: '3.12'
220227
architecture: 'x64'
221228

222229
- name: Set Python version

scripts

0 commit comments

Comments
 (0)