From 5ed1a8e2981d5af5a9437f12b3d9d62477e3e908 Mon Sep 17 00:00:00 2001 From: Harkaran Brar Date: Sun, 17 May 2026 14:35:21 -0700 Subject: [PATCH] fix: bump version to 0.2.1 and fix release workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Bump Cargo.toml version from 0.2.0 to 0.2.1 - Fix build_and_upload condition to run even if release pre-exists (was skipping builds when release was already created) - Update actions/checkout v4→v5 and upload-artifact v4→v5 to resolve Node.js 20 deprecation warnings --- .github/workflows/auto-release-on-merge.yml | 6 +++--- .github/workflows/ci.yml | 4 ++-- Cargo.toml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/auto-release-on-merge.yml b/.github/workflows/auto-release-on-merge.yml index 785eb99..bad11ac 100644 --- a/.github/workflows/auto-release-on-merge.yml +++ b/.github/workflows/auto-release-on-merge.yml @@ -17,7 +17,7 @@ jobs: release_created: ${{ steps.check_create_release.outputs.release_created }} steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: ref: ${{ github.event.pull_request.merge_commit_sha }} @@ -46,7 +46,7 @@ jobs: build_and_upload: needs: prepare_release - if: needs.prepare_release.outputs.release_created == 'true' + if: needs.prepare_release.outputs.release_tag != '' name: Build and Upload Assets runs-on: ${{ matrix.os }} defaults: @@ -78,7 +78,7 @@ jobs: steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: ref: ${{ github.event.pull_request.merge_commit_sha }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7da5af0..0061829 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: asset_name: purecode.exe steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v5 - name: Install Rust uses: dtolnay/rust-toolchain@stable @@ -52,7 +52,7 @@ jobs: - name: Upload Artifact if: github.event_name == 'pull_request' - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v5 with: name: ${{ matrix.artifact_name }} path: target/release/${{ matrix.asset_name }} diff --git a/Cargo.toml b/Cargo.toml index 9d41a48..01817db 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "purecode" -version = "0.2.0" +version = "0.2.1" edition = "2021" [dependencies]