mirror of
https://github.com/CosmicStar98/bedrocktool.git
synced 2024-06-16 13:19:45 +00:00
change verison stuff
This commit is contained in:
parent
9a4573efad
commit
8e7c969558
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user