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 3483f86
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/actions/upload-wheel/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: "wheel upload to gemfury"
description: "we build our wheel here and upload it to gemfury"

env:
GEMFURY_MASTER_TOKEN: value
TEST_VAR: val

runs:
using: "composite"
steps:
Expand All @@ -21,12 +25,20 @@ runs:
sudo apt-get update
sudo apt-get install fury-cli
shell: bash
- name: retrieve gemfury token
run: |
echo "TEST_VAR=$(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"
echo "::add-mask::TEMP_VAR=$(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 $TEMP_VAR
echo "GEMFURY_MASTER_TOKEN=$TEMP_VAR" >> "$GITHUB_ENV"
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)"
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}
echo ${{ env.TEST_VAR }}
echo ${{ env.GEMFURY_MASTER_TOKEN }}
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 3483f86

Please sign in to comment.