Skip to content

Commit 7069a3e

Browse files
committed
fix: fix support cargo-binstall
1 parent dac260a commit 7069a3e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,16 @@ 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
6874
- uses: taiki-e/upload-rust-binary-action@v1
6975
with:
7076
bin: git-semver-tags
71-
archive: $bin-$tag-$target
77+
archive: $bin-${{steps.tag.outputs.tag}}-$target
7278
target: ${{ matrix.target }}
7379
tar: all
7480
zip: windows

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ all-features = true
3636
rustdoc-args = ["--cfg", "docsrs"]
3737

3838
[package.metadata.binstall]
39-
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-{ target }{ archive-suffix }"
39+
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ version }-{ target }.tar.gz"
4040
bin-dir = "{ bin }{ binary-ext }"
4141
pkg-fmt = "tgz"

0 commit comments

Comments
 (0)