From e4e59c098674b63e0c9ac2a6608d5967fd48db95 Mon Sep 17 00:00:00 2001 From: Levente Pap Date: Wed, 16 Oct 2024 16:16:55 +0200 Subject: [PATCH] fix --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c6dcf7f671e..6deca342af0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,7 +60,7 @@ jobs: - name: Clean up and validate ${{ env.TAG_NAME }} tag name shell: bash run: | - export iota_tag=$(echo ${{ env.TAG_NAME }} | sed s/'refs\/tags\/'// | sed s/'refs\/heads\/'// | sed s/'sc-platform\/'//) + export iota_tag=$(echo ${{ env.TAG_NAME }} | sed s/'refs\/tags\/'// ) [[ "${iota_tag}" == "develop" ]] && echo "tag cannot be equal to 'develop'" && exit 1 echo "iota_tag=${iota_tag}" >> $GITHUB_ENV export iota_version=$(echo ${iota_tag} | sed -e 's/mainnet-v//' -e 's/testnet-v//') @@ -185,7 +185,8 @@ jobs: mv ./target/release/${binary}${{ env.extention }} ${{ env.TMP_BUILD_DIR }}/${binary}${{ env.extention }} done - tar -cvzf ./tmp/iota-${{ env.iota_tag }}-${{ env.os_type }}.tgz -C ${{ env.TMP_BUILD_DIR }} . + export modified_tag=$(echo ${{ env.iota_tag }} | | sed s/'refs\/heads\/'// | sed s/'sc-platform\/'//) + tar -cvzf ./tmp/iota-${modified_tag}-${{ env.os_type }}.tgz -C ${{ env.TMP_BUILD_DIR }} . # mv ./target/debug/iota${{ env.extention }} ${{ env.TMP_BUILD_DIR }}/iota-debug${{ env.extention }} # [[ ${{ env.iota_tag }} == *"testnet"* ]] && aws s3 cp ./tmp/iota-${{ env.iota_tag }}-${{ env.os_type }}.tgz s3://iota-releases/releases/iota-${{ env.iota_tag }}-${{ env.os_type }}.tgz || true