mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:36:22 -04:00
ci(release): publish zip archives for tree-sitter-cli
Problem: Publishing the built tree-sitter-cli artifacts as gzipped binaries prevents installing them with `cargo binstall` or packaging them for Windows Package Manager (`winget`). Solution: Also create a zip archive for each binary, named `tree-sitter-cli` to match now-common downstream usage. (Most package managers have separate `tree-sitter-cli` and `tree-sitter` (library) packages.)
This commit is contained in:
parent
30d9c675a4
commit
0dd08ce747
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
|
|
@ -45,6 +45,7 @@ jobs:
|
|||
for platform in $(cd artifacts; ls | sed 's/^tree-sitter\.//'); do
|
||||
exe=$(ls artifacts/tree-sitter.$platform/tree-sitter*)
|
||||
gzip --stdout --name $exe > target/tree-sitter-$platform.gz
|
||||
zip -j9 target/tree-sitter-cli-$platform.zip $exe
|
||||
done
|
||||
rm -rf artifacts
|
||||
ls -l target/
|
||||
|
|
@ -54,12 +55,14 @@ jobs:
|
|||
with:
|
||||
subject-path: |
|
||||
target/tree-sitter-*.gz
|
||||
target/tree-sitter-cli-*.zip
|
||||
target/web-tree-sitter.tar.gz
|
||||
|
||||
- name: Create release
|
||||
run: |-
|
||||
gh release create $GITHUB_REF_NAME \
|
||||
target/tree-sitter-*.gz \
|
||||
target/tree-sitter-cli-*.zip \
|
||||
target/web-tree-sitter.tar.gz
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue