File tree Expand file tree Collapse file tree 1 file changed +29
-3
lines changed Expand file tree Collapse file tree 1 file changed +29
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ on: # yamllint disable-line rule:truthy
99 default : false
1010 type : boolean
1111 platforms :
12- description : ' Platform to build for, eg. '
12+ description : " Platform to build for"
13+ type : choice
1314 options :
1415 - ' rocky8'
1516 - ' ubuntu'
3132
3233 steps :
3334 - name : Checkout
34- uses : actions/checkout@v4
35+ uses : actions/checkout@v5
3536
3637 - name : Set output
3738 id : set_output
6465
6566 steps :
6667 - name : Checkout
67- uses : actions/checkout@v4
68+ uses : actions/checkout@v5
6869
6970 - name : Set up Python
7071 uses : actions/setup-python@v5
@@ -118,3 +119,28 @@ jobs:
118119 jfrog rt upload --flat \
119120 "${{ env.archive_path }}/${{ env.archive_filename }}" \
120121 "ccdc-3rdparty-python-interpreters/conquest_python/2.7/"
122+
123+ - name : Upload conquest python to ProGet
124+ if : ${{ inputs.artifactory-push }}
125+ shell : bash
126+ env :
127+ PROGET_API_KEY : ${{ secrets.PROGET_API_KEY }}
128+ PROGET_BASE_URL : ${{ vars.PROGET_BASE_URL }}
129+ PROGET_ASSET_DIRECTORY : ${{ vars.PROGET_ASSET_DIRECTORY }}
130+ run : |
131+ PROGET_ENDPOINT="${PROGET_BASE_URL}/endpoints/${PROGET_ASSET_DIRECTORY}/content/conquest_python/2.7/${{ env.archive_filename }}"
132+
133+ curl -X POST \
134+ -H "Content-Type: application/octet-stream" \
135+ -H "X-ApiKey: ${PROGET_API_KEY}" \
136+ --data-binary "@${{ env.archive_path }}/${{ env.archive_filename }}" \
137+ --fail-with-body \
138+ "$PROGET_ENDPOINT"
139+
140+ if [ $? -eq 0 ]; then
141+ echo "Successfully uploaded ${{ env.archive_filename }} to ProGet"
142+ else
143+ echo "Failed to upload ${{ env.archive_filename }} to ProGet"
144+ exit 1
145+ fi
146+
You can’t perform that action at this time.
0 commit comments