Skip to content

Commit

Permalink
fixed binstall metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ohuu committed Aug 27, 2024
1 parent 5ea0dad commit 5bd3c0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ jobs:
cp README.md artifact/
- name: Compress build artifact
run: tar -czf cardamon-x86_64-unknown-linux-gnu-${{ github.ref_name }}.tar.gz -C artifact .
run: tar -czf cardamon-x86_64-unknown-linux-gnu-${{ github.ref_name }}.tgz -C artifact .

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: cardamon-x86_64-unknown-linux-gnu-${{ github.ref_name }}.tar.gz
path: cardamon-x86_64-unknown-linux-gnu-${{ github.ref_name }}.tgz

publish_crate:
needs: [build_linux]
Expand Down Expand Up @@ -92,6 +92,6 @@ jobs:
path: artifact
merge-multiple: true
- name: Create release
run: gh release create ${{ github.ref_name }} --draft --title "Release ${{ github.ref_name }}" --notes "" artifact/cardamon-x86_64-unknown-linux-gnu-${{ github.ref_name }}.tar.gz
run: gh release create ${{ github.ref_name }} --draft --title "Release ${{ github.ref_name }}" --notes "" artifact/cardamon-x86_64-unknown-linux-gnu-${{ github.ref_name }}.tgz
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cardamon"
version = "0.0.1"
version = "0.0.2"
edition = "2021"
authors = [
"Oliver Winks <oliver@paperplane.software>",
Expand Down Expand Up @@ -71,7 +71,7 @@ tracing-subscriber = { version = "0.3.18", features = [
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ target }-v{ version }.{ archive-format }"
bin-dir = "{ name }-{ target }-v{ version }/{ bin }{ binary-ext }"
pkg-fmt = "tar.gz"
pkg-fmt = "tgz"

[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"

0 comments on commit 5bd3c0e

Please sign in to comment.