From 436386fb73f8df163b7cc423134556697f0c2c5b Mon Sep 17 00:00:00 2001 From: Shengqi Chen Date: Fri, 28 Feb 2025 15:19:09 +0800 Subject: [PATCH] ci: include git tag in release tarball Signed-off-by: Shengqi Chen --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 11b0cb1..b614d5a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,9 +22,10 @@ jobs: id: go - name: Build run: | + TAG=$(git describe --tags) for i in linux-amd64 linux-arm64 linux-riscv64 linux-loong64; do make ARCH=$i all - tar -cz --numeric-owner --owner root --group root -f tunasync-$i-bin.tar.gz -C build-$i tunasync tunasynctl + tar -cz --numeric-owner --owner root --group root -f tunasync-${TAG}-$i-bin.tar.gz -C build-$i tunasync tunasynctl done - name: Create Release uses: softprops/action-gh-release@v2