properly resolve version for release

This commit is contained in:
Jack Baron 2020-10-20 21:24:53 +01:00
parent 7f94b2bf33
commit 84382c48b2
No known key found for this signature in database
GPG key ID: CD10BCEEC646C064

View file

@ -24,11 +24,16 @@ jobs:
with:
name: ModAssistant-${{ github.sha }}
path: ./ModAssistant/bin/Release/
- name: Extract Release Version
if: startsWith(github.ref, 'refs/tags/')
id: get_version
shell: bash
run: echo ::set-output name=version::${GITHUB_REF#refs/tags/v}
- name: Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: Mod Assistant ${{ github.ref }}
name: Mod Assistant ${{ steps.get_version.outputs.version }}
files: ./ModAssistant/bin/Release/ModAssistant.exe