diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7a47916..1b0ecc4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,8 +57,15 @@ jobs: run: | mkdir -p artifacts for target in ${{ join(matrix.targets, ' ') }}; do - target_name=$(echo $target | tr '-' '_') - cp "target/$target/release/sm" "artifacts/secrets-machine_${target_name}" + # Remove vendor names ('-apple' and '-unknown') from the target name + target_name=$(echo $target | sed 's/-apple//; s/-unknown//') + + # Remove platform names ('-gnu', 'musl') from the target name + target_name=$(echo $target_name | sed 's/-gnu//; s/-musl//') + + echo "target_name: $target_name" + + cp "target/$target/release/sm" "artifacts/secrets-machine-${target_name}" done - name: Release @@ -67,7 +74,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: draft: true - files: artifacts/secrets-machine_* + files: artifacts/secrets-machine* - name: Clean up run: rm -rf artifacts