Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lzpap committed Oct 16, 2024
1 parent ad6abf7 commit e4e59c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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//')
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e4e59c0

Please sign in to comment.