From 436d85a23bc3b82b8b0048cf201bca3e78701854 Mon Sep 17 00:00:00 2001 From: cs01 Date: Sun, 12 Apr 2026 23:29:01 -0700 Subject: [PATCH] fix release workflow: use softprops/action-gh-release for latest tag --- .github/workflows/ci.yml | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a159d7fd..b37370e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -584,22 +584,15 @@ jobs: with: path: artifacts - - name: Delete old latest release - run: gh release delete latest --yes --cleanup-tag 2>/dev/null || true - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GH_REPO: ${{ github.repository }} - - - name: Create latest release - run: | - gh release create latest \ - --title "Latest Build" \ - --notes "Automated release from ${GITHUB_REF_NAME} branch. Download native binaries and target SDKs below." \ - --latest \ - artifacts/**/*.tar.gz - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GH_REPO: ${{ github.repository }} + - name: Publish latest release + uses: softprops/action-gh-release@v2 + with: + tag_name: latest + name: Latest Build + body: Automated release from main branch. Download native binaries and target SDKs below. + files: artifacts/**/*.tar.gz + make_latest: "true" + target_commitish: ${{ github.sha }} tagged-release: needs: [build-linux-glibc, build-macos, test-artifact]