From 483d8f7a0216423a0ad80282eff0461c6db17df9 Mon Sep 17 00:00:00 2001 From: Revertron <105154+Revertron@users.noreply.github.com> Date: Tue, 23 Feb 2021 15:02:56 +0100 Subject: [PATCH] Update rust_create_release.yml --- .github/workflows/rust_create_release.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/rust_create_release.yml b/.github/workflows/rust_create_release.yml index 4d8e1c7..3b9bf30 100644 --- a/.github/workflows/rust_create_release.yml +++ b/.github/workflows/rust_create_release.yml @@ -12,16 +12,14 @@ jobs: name: Get version from Cargo.toml runs-on: ubuntu-latest outputs: - project_version: "$(cat version.txt)" + project_version: ${{ env.VERSION }} steps: - - name: Checkout + - name: Checkout code uses: actions/checkout@v2 - - name: install libgtk-dev libwebkit2gtk-4.0 - run: sudo apt update && sudo apt install libwebkit2gtk-4.0-dev - if: contains(matrix.os, 'ubuntu') - - name: Build project + - name: Getting version run: | - cargo build + VERSION=$(cat Cargo.toml | grep version | sed s/version//g | sed s/=//g | sed s/\"//g | sed s/\ //g | sed -n 1p) + echo "VERSION=$VERSION" >> $GITHUB_ENV make_release: name: Create Release