From 6fe955890ffad9df5579d4084811a03ffd663d2a Mon Sep 17 00:00:00 2001 From: thoroc Date: Fri, 6 Feb 2026 22:51:35 +0000 Subject: [PATCH 1/3] fix: use release_created (singular) output for release-please v4 --- .github/workflows/release-please.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 2c2abfd..700628a 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -14,7 +14,7 @@ jobs: release: runs-on: ubuntu-latest outputs: - releases_created: ${{ steps.publish_release.outputs.releases_created }} + release_created: ${{ steps.publish_release.outputs.release_created }} tag_name: ${{ steps.publish_release.outputs.tag_name }} steps: - name: Checkout @@ -32,7 +32,7 @@ jobs: build_and_upload: needs: release - if: needs.release.outputs.releases_created == 'true' + if: needs.release.outputs.release_created == 'true' runs-on: ${{ matrix.os }} strategy: matrix: From 979ee16bffa9252e7ceb42b8a4e004624fe912d2 Mon Sep 17 00:00:00 2001 From: thoroc Date: Fri, 6 Feb 2026 22:54:54 +0000 Subject: [PATCH 2/3] ci: only run on code and dependency changes --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 53a0827..a8a1009 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,12 @@ on: branches: [ main ] pull_request: branches: [ main ] + paths: + - 'src/**' + - 'Cargo.toml' + - 'Cargo.lock' + - 'tests/**' + - '.github/workflows/ci.yml' permissions: contents: read From 5ee1de5ddc70de7e476ded31c9f526b404ca1ac5 Mon Sep 17 00:00:00 2001 From: thoroc Date: Fri, 6 Feb 2026 23:07:16 +0000 Subject: [PATCH 3/3] fix: create release after building assets --- .github/workflows/release-please.yml | 31 ++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 700628a..1f200fb 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -22,13 +22,14 @@ jobs: with: fetch-depth: 0 - - name: Create or update Release PR and GitHub Release (release-please) + - name: Create or update Release PR (release-please) id: publish_release uses: googleapis/release-please-action@v4 with: release-type: rust package-name: git-mirror token: ${{ secrets.RELEASE_PLEASE_TOKEN }} + skip-github-release: true build_and_upload: needs: release @@ -132,10 +133,32 @@ jobs: run: | echo "GitHub CLI will use GH_TOKEN environment variable for authentication" - - name: Upload release artifacts + - name: Upload artifacts to workflow + uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.archive_name }} + path: | + ${{ matrix.archive_name }} + ${{ matrix.archive_name }}.sha256 + + create_release: + needs: [release, build_and_upload] + if: needs.release.outputs.release_created == 'true' + runs-on: ubuntu-latest + steps: + - name: Download all artifacts + uses: actions/download-artifact@v4 + with: + path: ./artifacts + merge-multiple: true + + - name: Create release and upload assets env: TAG: ${{ needs.release.outputs.tag_name }} GH_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN }} run: | - gh release upload "${{ env.TAG }}" ${{ matrix.archive_name }} ${{ matrix.archive_name }}.sha256 - shell: bash + cd ./artifacts + gh release create "${{ env.TAG }}" \ + --title "Release ${{ env.TAG }}" \ + --generate-notes \ + *.tar.gz *.zip *.sha256