From fdcfe09f1c367346414abfa4caae79487eb8eeb3 Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Thu, 7 May 2026 17:04:18 -0400 Subject: [PATCH 1/2] ci: Add release workflow that generates release notes. --- .github/workflows/release.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b0d117a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,20 @@ +name: Release + +on: + push: + tags: + - "**[0-9]+.[0-9]+.[0-9]+*" + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - name: Create GitHub Release + uses: ncipollo/release-action@caacf56b56ba217c4eaf0a9deb59dbcdd12abfcd + with: + draft: ${{ github.event_name == 'pull_request' }} + tag: ${{ github.ref_name }} + generateReleaseNotes: true + prerelease: ${{ contains(steps.tag.outputs.value, '-pre') }} From 88c4db3853385f3fe9cd615a95e6916120ce7806 Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Thu, 7 May 2026 17:06:26 -0400 Subject: [PATCH 2/2] ci: Add release workflow (changelog only) --- .github/workflows/lint.yml | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a24b129..62b9da3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -45,7 +45,7 @@ jobs: echo "Cargo.lock is out of date" { echo "## Cargo.lock is out of date" - echo 'Run `cargo check` locally and commit the updated `Cargo.lock`.' + echo 'Run "cargo check" locally and commit the updated Cargo.lock.' } >> "$GITHUB_STEP_SUMMARY" echo "::group::Cargo.lock diff" git diff -- Cargo.lock diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b0d117a..05d1b48 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,4 +17,4 @@ jobs: draft: ${{ github.event_name == 'pull_request' }} tag: ${{ github.ref_name }} generateReleaseNotes: true - prerelease: ${{ contains(steps.tag.outputs.value, '-pre') }} + prerelease: ${{ contains(github.ref_name, '-pre') }}