Skip to content

Commit 56260ad

Browse files
fix(ci): configure release version based on github ref type. (#38)
1 parent 56cb7a2 commit 56260ad

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/actions/package/action.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,20 @@ runs:
2929
make check
3030
make deny
3131
make test
32+
- name: Configure release version
33+
shell: bash
34+
run: |
35+
if [[ "${{ github.ref_type }}" == "tag" ]]; then
36+
echo "VERSION=${{ github.ref_name }}" >> "$GITHUB_ENV"
37+
fi
3238
- name: Build x86_64 packages
3339
env:
34-
VERSION: ${{ github.ref_name }}
3540
CARGO_TARGET: x86_64-unknown-linux-gnu
3641
GLIBC_VERSION: 2.27
3742
shell: bash
3843
run: make package
3944
- name: Build aarch64 packages
4045
env:
41-
VERSION: ${{ github.ref_name }}
4246
CARGO_TARGET: aarch64-unknown-linux-gnu
4347
BIN_UTIL_PREFIX: aarch64-linux-gnu-
4448
GLIBC_VERSION: 2.27

0 commit comments

Comments
 (0)