Skip to content

Commit de3a9ff

Browse files
DO-1298 updates
1 parent 7ff18ad commit de3a9ff

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

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

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -108,30 +108,21 @@ jobs:
108108
shell: bash
109109
env:
110110
PROGET_API_KEY: ${{ secrets.PROGET_API_KEY }}
111-
PROGET_BASE_URL: ${{ vars.PROGET_BASE_URL || 'https://proget.ccdc.cam.ac.uk' }}
112-
PROGET_ASSET_DIRECTORY: ${{ vars.PROGET_ASSET_DIRECTORY || 'ccdc-3rdparty-python-interpreters' }}
111+
PROGET_BASE_URL: ${{ vars.PROGET_BASE_URL }}
112+
PROGET_ASSET_DIRECTORY: ${{ vars.PROGET_ASSET_DIRECTORY }}
113113
run: |
114-
# Upload the base python to ProGet using HTTP API
115-
echo "Uploading ${{ env.archive_filename }} to ProGet..."
116-
117-
# Construct the ProGet API endpoint
118114
PROGET_ENDPOINT="${PROGET_BASE_URL}/endpoints/${PROGET_ASSET_DIRECTORY}/content/base_python/${{ env.shortversion }}/${{ env.archive_filename }}"
119115
120-
echo "ProGet endpoint: $PROGET_ENDPOINT"
121-
122-
# Upload using curl with POST method (creates or overwrites existing file)
123116
curl -X POST \
124117
-H "Content-Type: application/octet-stream" \
125118
-H "X-ApiKey: ${PROGET_API_KEY}" \
126119
--data-binary "@${{ env.archive_path }}/${{ env.archive_filename }}" \
127120
--fail-with-body \
128121
"$PROGET_ENDPOINT"
129-
122+
130123
if [ $? -eq 0 ]; then
131124
echo "Successfully uploaded ${{ env.archive_filename }} to ProGet"
132125
else
133126
echo "Failed to upload ${{ env.archive_filename }} to ProGet"
134127
exit 1
135128
fi
136-
137-

0 commit comments

Comments
 (0)