Skip to content

Commit 118a0e2

Browse files
ci: converting to publishing .tar.gz (#83)
This will keep the binaries names and set permissions, so you don't need to know the desired name or use chmod to set the permissions.
1 parent 27ba7ed commit 118a0e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/publish-binary.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ set -o xtrace
5959

6060
target=$(rustc -vV | sed -n 's|host: ||p')
6161
cargo build --verbose --release
62-
gzip --verbose --stdout "target/release/conventional_commits_next_version" >"${target}.gz"
63-
gh release upload "${_arg_release}" "${target}.gz"
62+
tar -czvf "${target}.tar.gz" -C target/release conventional_commits_next_version
63+
gh release upload "${_arg_release}" "${target}.tar.gz"
6464
# ] <-- needed because of Argbash

0 commit comments

Comments
 (0)