From 2517ca2cee90118a8f6b69ce76542e6bc6a86244 Mon Sep 17 00:00:00 2001 From: Pavel Kirilin Date: Sun, 15 Dec 2024 21:36:15 +0100 Subject: [PATCH] Fixed version bumping. --- .github/workflows/release.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 56bcc16..4c1a398 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,9 +29,13 @@ jobs: target: x86_64-apple-darwin steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 + - name: Install cargo-bump + uses: taiki-e/install-action@v2 + with: + tool: cargo-bump - name: Update version - run: sed -i '0,/^version = .*/{s/version = .*/version = "${{ github.ref_name }}"/}' Cargo.toml + run: cargo-bump "${{ github.ref_name }}" - name: Build binary uses: houseabsolute/actions-rust-cross@v0 with: @@ -60,8 +64,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + - name: Install cargo-bump + uses: taiki-e/install-action@v2 + with: + tool: cargo-bump - name: Update version - run: sed -i '0,/^version = .*/{s/version = .*/version = "${{ github.ref_name }}"/}' Cargo.toml + run: cargo-bump "${{ github.ref_name }}" - name: Set up QEMU uses: docker/setup-qemu-action@v1 - name: Set up Docker Buildx