From 67978e4a4d4d2e8334ea03c519204fb9712d493c Mon Sep 17 00:00:00 2001 From: luttje <2738114+luttje@users.noreply.github.com> Date: Sun, 1 Dec 2024 19:11:45 +0100 Subject: [PATCH] don't use a 'latest' git tag --- .github/workflows/publish_version.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_version.yml b/.github/workflows/publish_version.yml index 10ee1ad..65a3c05 100644 --- a/.github/workflows/publish_version.yml +++ b/.github/workflows/publish_version.yml @@ -124,12 +124,17 @@ jobs: path: dist merge-multiple: true + - name: Store the latest tag in a variable + id: get_tag + run: echo "LATEST_TAG=$(git describe --abbrev=0 --tags)" >> $GITHUB_OUTPUT + - name: Create a new release id: create_release env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + LATEST_TAG: ${{ steps.get_tag.outputs.LATEST_TAG }} run: | - gh release create latest \ + gh release create $LATEST_TAG \ --prerelease \ --title "Latest (automatic build)" \ dist/jestronaut-ubuntu \