changed to standard versioning
This commit is contained in:
parent
2c42900cdf
commit
8e1066496e
@ -45,13 +45,28 @@ jobs:
|
|||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Get letzte Release-Version
|
||||||
|
id: get_version
|
||||||
|
run: echo "::set-output name=version::$(git describe --tags --abbrev=0 || echo '0.0.0')"
|
||||||
|
|
||||||
|
- name: Incrementiere Version
|
||||||
|
id: increment_version
|
||||||
|
run: |
|
||||||
|
IFS='.' read -ra VERSION <<< "${{ steps.get_version.outputs.version }}"
|
||||||
|
MAJOR="${VERSION[0]}"
|
||||||
|
MINOR="${VERSION[1]}"
|
||||||
|
PATCH="${VERSION[2]}"
|
||||||
|
echo "::set-output name=major::$(($MAJOR + 1))"
|
||||||
|
echo "::set-output name=minor::$(($MINOR + 1))"
|
||||||
|
echo "::set-output name=patch::$(($PATCH + 1))"
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
target/BetterMinecraft.jar
|
target/BetterMinecraft.jar
|
||||||
tag_name: ${{ gitea.ref }}
|
tag_name: ${{ steps.increment_version.outputs.major }}.${{ steps.increment_version.outputs.minor }}.${{ steps.increment_version.outputs.patch }}
|
||||||
title: Release ${{ gitea.ref }}
|
release_name: Release ${{ steps.increment_version.outputs.major }}.${{ steps.increment_version.outputs.minor }}.${{ steps.increment_version.outputs.patch }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
Loading…
x
Reference in New Issue
Block a user