From f3fce014d3d76170d069a0dfc511e361639429af Mon Sep 17 00:00:00 2001 From: Sebastien Roy Date: Mon, 6 May 2024 09:45:27 -0400 Subject: [PATCH] test upload --- .github/actions/upload-wheel/action.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/actions/upload-wheel/action.yml b/.github/actions/upload-wheel/action.yml index c4ae5b0..6b9d1d1 100644 --- a/.github/actions/upload-wheel/action.yml +++ b/.github/actions/upload-wheel/action.yml @@ -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