Skip to content

Commit

Permalink
Include release parent directory in the archive to get working with n…
Browse files Browse the repository at this point in the history
…pm (#33)

* Include release parent directory in the archive to get working with npm
  • Loading branch information
xBATx authored May 31, 2022
1 parent 7bc0211 commit a3cbba5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ jobs:
- name: Build for release linux
run: |
cargo build --release
tar -C target/release/ -czvf protofetch_linux_amd64.tar.gz protofetch
mv target/release bin/
tar -czvf protofetch_linux_amd64.tar.gz bin/protofetch
- name: Upload release
uses: softprops/action-gh-release@v1
Expand Down Expand Up @@ -78,7 +79,8 @@ jobs:
# We would need self-hosted arm runner for the correct target - for now we use `vendored-openssl` feature on `git2-rs dependency to overcome it
run: |
cargo build --release # --target=aarch64-apple-darwin
tar -C target/release/ -czvf protofetch_darwin_arm64.tar.gz protofetch
mv target/release bin/
tar -czvf protofetch_darwin_arm64.tar.gz bin/protofetch
- name: Upload release
uses: softprops/action-gh-release@v1
Expand Down Expand Up @@ -112,7 +114,8 @@ jobs:
- name: Build for release mac-amd64
run: |
cargo build --release
tar -C target/release/ -czvf protofetch_darwin_amd64.tar.gz protofetch
mv target/release bin/
tar -czvf protofetch_darwin_amd64.tar.gz bin/protofetch
- name: Upload release
uses: softprops/action-gh-release@v1
Expand Down Expand Up @@ -146,7 +149,8 @@ jobs:
- name: Build for release win64
run: |
cargo build --release
tar -C target/release/ -czvf protofetch_win64.tar.gz protofetch.exe
mv target/release bin/
tar -czvf protofetch_win64.tar.gz bin/protofetch.exe
- name: Upload release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit a3cbba5

Please sign in to comment.