From 0e1dd548a5171b69de78cd0747539e9e23e98afe Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Mon, 26 Oct 2026 18:56:50 +0400 Subject: [PATCH 1/2] ci: Let the release build be dispatched Tags pushed by Release Version use GITHUB_TOKEN, which never triggers other workflows, so 0.0.8 and 0.1.0 were tagged without a release. A dispatch on the tag's ref is the one trigger that token can start. Also moves the upload action off v1, which runs on a retired Node.js. --- .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 e5cee97..33ede53 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,7 @@ on: push: tags: - '*' + workflow_dispatch: permissions: contents: write @@ -75,7 +76,7 @@ jobs: fi - name: Upload binary to release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/') with: files: | From 90ac50be4020d046663f73b6c39002ff292bae6a Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Mon, 26 Oct 2026 18:56:51 +0400 Subject: [PATCH 2/2] ci: Start the release build after bumping the version Dispatches Release on the new tag, since the tag push alone doesn't start it when made with GITHUB_TOKEN. --- .github/workflows/release_version.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release_version.yml b/.github/workflows/release_version.yml index bc53863..10cb390 100644 --- a/.github/workflows/release_version.yml +++ b/.github/workflows/release_version.yml @@ -18,6 +18,7 @@ jobs: runs-on: ubuntu-latest permissions: contents: write + actions: write steps: - name: Checkout code uses: actions/checkout@v4 @@ -30,6 +31,7 @@ jobs: git config user.email "github-actions[bot]@users.noreply.github.com" - name: Bump version and push tag + id: bump run: | # Get the latest tag, default to 0.0.0 if none exists LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "0.0.0") @@ -66,3 +68,10 @@ jobs: # Create and push the new tag git tag $NEW_TAG git push origin $NEW_TAG + echo "tag=$NEW_TAG" >> "$GITHUB_OUTPUT" + + # A tag pushed with GITHUB_TOKEN doesn't trigger the Release workflow, but a dispatch does. + - name: Start the release build + run: gh workflow run release.yml --ref "${{ steps.bump.outputs.tag }}" + env: + GH_TOKEN: ${{ github.token }}