Skip to content

Commit 0ca8056

Browse files
committed
ci: declare binary name in env [ci skip]
1 parent ef5ab02 commit 0ca8056

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ jobs:
77
release:
88
name: Release on ${{ matrix.target }}
99
runs-on: ${{ matrix.os }}
10+
env:
11+
RUST_BIN_NAME: "RustyStar"
1012
strategy:
1113
fail-fast: false
1214
matrix:
@@ -37,8 +39,8 @@ jobs:
3739
- name: Prepare assets
3840
shell: bash
3941
run: |
40-
mv target/${{ matrix.target }}/release/RustyStar${{ matrix.suffix }} .
41-
tar -cvzf ${{ matrix.target }}.tar.gz LICENSE README.md RustyStar${{ matrix.suffix }}
42+
mv target/${{ matrix.target }}/release/${{ env.RUST_BIN_NAME }}${{ matrix.suffix }} .
43+
tar -cvzf ${{ matrix.target }}.tar.gz LICENSE README.md ${{ env.RUST_BIN_NAME }}${{ matrix.suffix }}
4244
- name: Declare some variables
4345
id: vars
4446
shell: bash

0 commit comments

Comments
 (0)