Skip to content

Commit c38f31d

Browse files
committed
fix: fix support cargo-binstall
1 parent 370ea38 commit c38f31d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,11 @@ jobs:
6565
with:
6666
persist-credentials: false
6767
- uses: dtolnay/rust-toolchain@stable
68-
- name: Get tag
69-
id: tag
70-
uses: dawidd6/[email protected]
71-
with:
72-
# Optionally strip `v` prefix
73-
strip_v: true
7468
- uses: taiki-e/upload-rust-binary-action@v1
7569
with:
7670
bin: git-semver-tags
77-
archive: $bin-${{steps.tag.outputs.tag}}-$target
71+
# The tag name contains the binary name so just use that.
72+
archive: $tag-$target
7873
target: ${{ matrix.target }}
7974
tar: all
8075
zip: windows

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,8 @@ assert_fs = "1.0.7"
3434
[package.metadata.docs.rs]
3535
all-features = true
3636
rustdoc-args = ["--cfg", "docsrs"]
37+
38+
[package.metadata.binstall]
39+
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ target }-v{ version }{ archive-suffix }"
40+
bin-dir = "{ bin }{ binary-ext }"
41+
pkg-fmt = "tgz"

0 commit comments

Comments
 (0)