소스 검색

ci: include git tag in release tarball

Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
Shengqi Chen 6 달 전
부모
커밋
436386fb73
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      .github/workflows/release.yml

+ 2 - 1
.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