2
0
mirror of https://github.com/Revertron/Alfis synced 2024-11-03 15:40:19 +00:00

Update rust_create_release.yml

This commit is contained in:
Revertron 2021-02-23 15:02:56 +01:00 committed by GitHub
parent cbada24e56
commit 483d8f7a02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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