mirror of
https://github.com/CosmicStar98/bedrocktool.git
synced 2024-06-26 00:19:46 +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
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
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
|
- uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: '1.19'
|
go-version: '1.19'
|
||||||
check-latest: true
|
check-latest: true
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
- name: Retrieve version
|
|
||||||
run: |
|
|
||||||
echo "::set-output name=TAG_NAME::$(git describe --tags)"
|
|
||||||
id: version
|
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
run: make
|
run: make windows linux mac
|
||||||
|
|
||||||
|
# create release
|
||||||
- uses: "marvinpinto/action-automatic-releases@latest"
|
- uses: "marvinpinto/action-automatic-releases@latest"
|
||||||
with:
|
with:
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
automatic_release_tag: "latest"
|
automatic_release_tag: ${{ steps.bump-semver.outputs.new_version }}
|
||||||
prerelease: true
|
prerelease: true
|
||||||
title: "Development Build"
|
title: "Development Build"
|
||||||
files: |
|
files: |
|
||||||
bedrocktool_${{ steps.version.outputs.TAG_NAME }}.exe
|
bedrocktool_${{ steps.get-latest-tag.outputs.tag }}.exe
|
||||||
bedrocktool_${{ steps.version.outputs.TAG_NAME }}-linux
|
bedrocktool_${{ steps.get-latest-tag.outputs.tag }}-linux
|
||||||
bedrocktool_${{ steps.version.outputs.TAG_NAME }}-mac
|
bedrocktool_${{ steps.get-latest-tag.outputs.tag }}-mac
|
||||||
|
|
Loading…
Reference in New Issue
Block a user