Update rust_create_release.yml

pull/3/head
Revertron 3 years ago committed by GitHub
parent cbada24e56
commit 483d8f7a02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save