Skip to content

Commit 85c62fd

Browse files
authored
release/glint: Dont tar the glint bins (#2821)
Signed-off-by: Ryan Northey <[email protected]>
1 parent cc3a4be commit 85c62fd

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/rust.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,15 @@ jobs:
8686
- name: Strip binary
8787
run: strip rust/target/release/glint
8888

89-
- name: Package glint
89+
- name: Rename binary with version and architecture
9090
run: |
91-
mkdir -p glint-${{ steps.version.outputs.version }}-${{ matrix.arch }}
92-
cp rust/target/release/glint glint-${{ steps.version.outputs.version }}-${{ matrix.arch }}/
93-
tar -cJf glint-${{ steps.version.outputs.version }}-${{ matrix.arch }}.tar.xz \
94-
glint-${{ steps.version.outputs.version }}-${{ matrix.arch }}
91+
cp rust/target/release/glint glint-${{ steps.version.outputs.version }}-${{ matrix.arch }}
9592
9693
- name: Upload glint binary
9794
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
9895
with:
9996
name: glint-${{ steps.version.outputs.version }}-${{ matrix.arch }}
100-
path: glint-${{ steps.version.outputs.version }}-${{ matrix.arch }}.tar.xz
97+
path: glint-${{ steps.version.outputs.version }}-${{ matrix.arch }}
10198
retention-days: 30
10299

103100
publish:
@@ -120,9 +117,9 @@ jobs:
120117
for artifact in artifacts/*; do
121118
[[ ! -d "$artifact" ]] && continue
122119
name=$(basename "$artifact")
123-
file=$(ls "$artifact"/*.tar.xz)
124-
echo "Uploading $file as $name.tar.xz"
120+
file=$(ls "$artifact"/glint-*)
121+
echo "Uploading $file as $name"
125122
gh release upload "${{ github.event.release.tag_name }}" \
126-
"$file#$name.tar.xz" \
123+
"$file#$name" \
127124
--clobber
128125
done

0 commit comments

Comments
 (0)