Skip to content

Commit bbf0f68

Browse files
Merge branch 'main' into dependabot/github_actions/actions/checkout-5
2 parents 1f456c7 + 8a55d77 commit bbf0f68

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,27 @@ jobs:
102102
jfrog rt upload --flat \
103103
"${{ env.archive_path }}/${{ env.archive_filename }}" \
104104
"ccdc-3rdparty-python-interpreters/base_python/${{ env.shortversion }}/"
105+
106+
- name: upload base python to ProGet
107+
if: ${{ inputs.deploy == 'upload' }}
108+
shell: bash
109+
env:
110+
PROGET_API_KEY: ${{ secrets.PROGET_API_KEY }}
111+
PROGET_BASE_URL: ${{ vars.PROGET_BASE_URL }}
112+
PROGET_ASSET_DIRECTORY: ${{ vars.PROGET_ASSET_DIRECTORY }}
113+
run: |
114+
PROGET_ENDPOINT="${PROGET_BASE_URL}/endpoints/${PROGET_ASSET_DIRECTORY}/content/base_python/${{ env.shortversion }}/${{ env.archive_filename }}"
115+
116+
curl -X POST \
117+
-H "Content-Type: application/octet-stream" \
118+
-H "X-ApiKey: ${PROGET_API_KEY}" \
119+
--data-binary "@${{ env.archive_path }}/${{ env.archive_filename }}" \
120+
--fail-with-body \
121+
"$PROGET_ENDPOINT"
122+
123+
if [ $? -eq 0 ]; then
124+
echo "Successfully uploaded ${{ env.archive_filename }} to ProGet"
125+
else
126+
echo "Failed to upload ${{ env.archive_filename }} to ProGet"
127+
exit 1
128+
fi

0 commit comments

Comments
 (0)