File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff 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-
You can’t perform that action at this time.
0 commit comments