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:
parent
e01f3e5e10
commit
18d6fe11fc
11
.github/workflows/rust_create_release.yml
vendored
11
.github/workflows/rust_create_release.yml
vendored
@ -1,8 +1,6 @@
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
tags: v[0-9].[0-9]+.[0-9]+
|
||||
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
@ -20,8 +18,7 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Getting version
|
||||
run: |
|
||||
echo "VERSION=$(cat Cargo.toml | grep version | sed s/version//g | sed s/=//g | sed s/\"//g | sed s/\ //g | sed -n 1p)" >> $GITHUB_ENV
|
||||
run: echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||
|
||||
make_release:
|
||||
name: Create Release
|
||||
@ -42,8 +39,8 @@ jobs:
|
||||
tag_name: v${{ env.VERSION }}
|
||||
release_name: Test version v${{ env.VERSION }}
|
||||
body: |
|
||||
Changes in this version
|
||||
To be written by maintainer.
|
||||
## A new version
|
||||
* Various fixes and stability improvements.
|
||||
draft: true
|
||||
prerelease: true
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user