@@ -4,21 +4,19 @@ name: Build Conquest Python
4
4
on : # yamllint disable-line rule:truthy
5
5
workflow_dispatch :
6
6
inputs :
7
- deploy :
8
- type : choice
9
- description : ' Whether to upload conquest python build to artifactory'
10
- options :
11
- - ' no-upload'
12
- - ' upload'
7
+ artifactory-push :
8
+ description : " Push result to Artifactory"
9
+ default : false
10
+ type : boolean
13
11
platforms :
14
12
description : ' Platform to build for, eg. '
15
13
options :
16
14
- ' rocky8'
17
- - ' ubuntu22 '
15
+ - ' ubuntu '
18
16
- ' macos'
19
17
- ' windows'
20
18
push :
21
- files :
19
+ paths :
22
20
- ' .github/workflows/build-conquest-python.yml'
23
21
- ' build_conquest_python.py'
24
22
- ' ccdc/thirdparty/package.py'
42
40
echo runson=ubuntu-latest >> $GITHUB_OUTPUT
43
41
echo container=ccdcrepository.azurecr.io/conan/rocky8-gcc10:latest >> $GITHUB_OUTPUT
44
42
echo python=python3 >> $GITHUB_OUTPUT
45
- elif [[ "${{ inputs.platforms }}" == "ubuntu22 " ]]; then
43
+ elif [[ "${{ inputs.platforms }}" == "ubuntu " ]]; then
46
44
echo runson=ubuntu-latest >> $GITHUB_OUTPUT
47
45
echo python=python3 >> $GITHUB_OUTPUT
48
46
elif [[ "${{ inputs.platforms }}" == "macos" ]]; then
@@ -92,13 +90,13 @@ jobs:
92
90
echo "archive_path=$archive_path" >> $GITHUB_ENV
93
91
94
92
- name : Set up JFrog CLI
95
- # if: ${{ inputs.deploy == 'upload' }}
93
+ if : ${{ inputs.artifactory-push }}
96
94
uses : jfrog/setup-jfrog-cli@v4
97
95
env :
98
96
JF_ENV_1 : ${{ secrets.ARTIFACTORY_GH_CCDC_3RDPARTY_PYTHON_INTERPRETERS_READ_WRITE_EXPORT }}
99
97
100
98
- name : Upload conquest python to Artifactory
101
- # if: ${{ inputs.deploy == 'upload' }}
99
+ if : ${{ inputs.artifactory-push }}
102
100
shell : bash
103
101
run : |
104
102
# Upload the conquest python to Artifactory
0 commit comments