change verison stuff

This commit is contained in:
olebeck 2022-08-11 23:06:36 +02:00
parent 9a4573efad
commit 8e7c969558
1 changed files with 19 additions and 11 deletions

View File

@ -10,27 +10,35 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
# version number
- uses: actions-ecosystem/action-get-latest-tag@v1
id: get-latest-tag
- uses: actions-ecosystem/action-bump-semver@v1
id: bump-semver
with:
current_version: ${{ steps.get-latest-tag.outputs.tag }}
level: minor
# build
- uses: actions/setup-go@v3
with:
go-version: '1.19'
check-latest: true
cache: true
- name: Retrieve version
run: |
echo "::set-output name=TAG_NAME::$(git describe --tags)"
id: version
- name: build
run: make
run: make windows linux mac
# create release
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
automatic_release_tag: ${{ steps.bump-semver.outputs.new_version }}
prerelease: true
title: "Development Build"
files: |
bedrocktool_${{ steps.version.outputs.TAG_NAME }}.exe
bedrocktool_${{ steps.version.outputs.TAG_NAME }}-linux
bedrocktool_${{ steps.version.outputs.TAG_NAME }}-mac
bedrocktool_${{ steps.get-latest-tag.outputs.tag }}.exe
bedrocktool_${{ steps.get-latest-tag.outputs.tag }}-linux
bedrocktool_${{ steps.get-latest-tag.outputs.tag }}-mac