From 8e7c969558c5100412fbfa94292888e2b97204ea Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Thu, 11 Aug 2022 23:06:36 +0200 Subject: [PATCH] change verison stuff --- .github/workflows/build.yml | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0b2f1df..e22cc36 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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