File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments