Skip to content

Commit 0a44c1c

Browse files
committed
Taskfile: Fix "deploy" task (again)
- When GitHub creates a tag on its way to creating a release, it is a "lightweight" tag. - Fix the one-liner to include lightweight tags and not just annotated tags.
1 parent a5ea8db commit 0a44c1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ tasks:
2020
- sh: git pull origin master
2121
vars:
2222
NEW_VERSION_NUMBER:
23-
sh: git describe --abbrev=0 | cut --delimiter "v" --fields 2- | xargs -n 1 expr 1 + # get the latest tag | trim off "v" | increment the result by 1
23+
sh: git describe --tags --abbrev=0 | cut --delimiter "v" --fields 2- | xargs -n 1 expr 1 + # get the latest tag | trim off "v" | increment the result by 1
2424
cmds:
2525
- git tag -a v{{.NEW_VERSION_NUMBER}} -m ""
2626
- git push --tags

0 commit comments

Comments
 (0)