From 5dfd1c762737c8dea755b88d4de343d26cc4f891 Mon Sep 17 00:00:00 2001 From: Liam Bigelow <40188355+bglw@users.noreply.github.com> Date: Thu, 15 Aug 2024 13:04:43 +1200 Subject: [PATCH] Tweak crate release action for next release --- .github/workflows/release.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7662c0b..2e3d2f4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,9 +29,15 @@ jobs: target rosey/target key: ${{ runner.os }}-stable - - name: Setup - run: | - rustup install stable + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + default: true + components: rustfmt, clippy + - name: Get Version run: echo GIT_VERSION="$(git describe --tags | sed 's/^v\(.*\)$/\1/')" >> $GITHUB_ENV - name: Prepare Git @@ -51,7 +57,7 @@ jobs: - name: Build working-directory: ./rosey - run: cargo build --release --verbose + run: RELEASE_VERSION=${GITHUB_REF#refs/tags/} cargo build --release --verbose - name: Publish working-directory: ./rosey run: cargo publish --allow-dirty