From 2f8eac5ca0a541d573646808ad4e367df2b0e204 Mon Sep 17 00:00:00 2001 From: Yuzu Date: Mon, 27 Jul 2026 13:46:45 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20ci:=20release=20versioning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index baa4381..20c4c32 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,11 +44,12 @@ jobs: GOOS: ${{ matrix.goos }} GOARCH: ${{ matrix.goarch }} CGO_ENABLED: "0" + VERSION: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || github.sha }} run: | ext="" if [ "$GOOS" = "windows" ]; then ext=".exe"; fi mkdir -p dist - go build -o "dist/git-identity-audit-${GOOS}-${GOARCH}${ext}" . + go build -o "dist/git-identity-audit-${VERSION}-${GOOS}-${GOARCH}${ext}" . - uses: actions/upload-artifact@v5 with: name: git-identity-audit-${{ matrix.goos }}-${{ matrix.goarch }} @@ -67,4 +68,5 @@ jobs: merge-multiple: true - uses: softprops/action-gh-release@v2 with: + name: ${{ github.ref_name }} files: dist/*