Skip to content

Commit

Permalink
don't use a 'latest' git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
luttje committed Dec 1, 2024
1 parent 87624c5 commit 67978e4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 67978e4

Please sign in to comment.