Skip to content

Commit 64dc5ce

Browse files
committed
Try uploading to artifactory (BLD-6874)
1 parent 7d56642 commit 64dc5ce

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/build-conquest-python.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,20 @@ jobs:
8484
8585
- name: Build conquest python
8686
run: |
87-
${{ needs.setup.outputs.python }} build_conquest_python.py
87+
output=$(${{ needs.setup.outputs.python }} build_conquest_python.py | tail -n 1)
88+
archive_filename=$(echo $output | awk '{print $2}')
89+
archive_path=$(echo $output | awk '{print $NF}')
90+
echo "archive_filename=$archive_filename" >> $GITHUB_ENV
91+
echo "archive_path=$archive_path" >> $GITHUB_ENV
8892
8993
- name: Set up JFrog CLI
90-
if: ${{ inputs.deploy == 'upload' }}
94+
# if: ${{ inputs.deploy == 'upload' }}
9195
uses: jfrog/setup-jfrog-cli@v4
9296
env:
9397
JF_ENV_1: ${{ secrets.ARTIFACTORY_GH_CCDC_3RDPARTY_PYTHON_INTERPRETERS_READ_WRITE_EXPORT }}
9498

9599
- name: Upload conquest python to Artifactory
96-
if: ${{ inputs.deploy == 'upload' }}
100+
# if: ${{ inputs.deploy == 'upload' }}
97101
shell: bash
98102
run: |
99103
# Upload the conquest python to Artifactory

ccdc/thirdparty/package.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ def output_base_name(self):
138138
self.name,
139139
self.version,
140140
]
141-
if 'BUILD_BUILDNUMBER' in os.environ:
142-
components.append(os.environ['BUILD_BUILDNUMBER'])
141+
if 'GITHUB_RUN_NUMBER' in os.environ:
142+
components.append(os.environ['GITHUB_RUN_NUMBER'])
143143
else:
144144
components.append('do-not-use-me-developer-version')
145145
components.append(self.platform)

0 commit comments

Comments
 (0)