File tree Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Original file line number Diff line number Diff line change 2929
3030 steps :
3131 - name : Checkout
32- uses : actions/checkout@v4
32+ uses : actions/checkout@v5
3333
3434 - name : Set output
3535 id : set_output
6161
6262 steps :
6363 - name : Checkout
64- uses : actions/checkout@v4
64+ uses : actions/checkout@v5
6565
6666 - name : Set up Python
6767 uses : actions/setup-python@v6
@@ -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
You can’t perform that action at this time.
0 commit comments