Skip to content

Commit

Permalink
test upload
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastroy committed May 6, 2024
1 parent d5f3128 commit f3fce01
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/actions/upload-wheel/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ runs:
shell: bash
- name: push wheel to gemfury
run: |
echo "add-mask::export GEMFURY_MASTER_TOKEN=$(aws secretsmanager get-secret-value --secret-id gemfury-push-yank | jq .SecretString | sed -e \'s/\\//g\' | sed -e \'s/.$//\' | sed -e \'s/\"//\' | jq .GEMFURY_MASTER_TOKEN)"
echo "::add-mask::GEMFURY_MASTER_TOKEN=$(aws secretsmanager get-secret-value --secret-id gemfury-push-yank | jq .SecretString | sed -e 's/\\//g' | sed -e 's/.$//' | sed -e 's/\"//' | jq .GEMFURY_MASTER_TOKEN)" >> "$GITHUB_ENV"
python -m pip install wheel-filename
sudo apt install jq
export PACKAGE_VERSION=`wheel-filename dist/$(ls dist -1 | grep whl) | jq -r '.version'`
fury yank qcog_python_client -v $PACKAGE_VERSION --account qognitive --api-token ${GEMFURY_MASTER_TOKEN} || echo "No existing package to remove, moving on to push."
fury push dist/$(ls dist -1 | grep whl) --api-token ${GEMFURY_MASTER_TOKEN}
[ -z ${{ env.GEMFURY_MASTER_TOKEN }} ] && echo EMPTY VAR
fury yank qcog_python_client -v $PACKAGE_VERSION --account qognitive --api-token ${{ env.GEMFURY_MASTER_TOKEN }} || echo "No existing package to remove, moving on to push."
fury push dist/$(ls dist -1 | grep whl) --api-token ${{ env.GEMFURY_MASTER_TOKEN }}
shell: bash

0 comments on commit f3fce01

Please sign in to comment.