Skip to content

Commit

Permalink
refactor: adds version number in prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
devraj committed Jun 29, 2024
1 parent 9809809 commit 8e17464
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ dotenv: ['.env']

tasks:
publish:tag:
prompt: "Before we build, is the version number up to date?"
vars:
PROJ_VERSION:
sh: poetry version | awk '{print $2}'
prompt: "Before we build, is the version {{.PROJ_VERSION}} number up to date?"
desc: tags the current commit
cmds:
- git tag -a v$(poetry version | awk '{print $2}') -m "v$(poetry version | awk '{print $2}')"
- git push origin v$(poetry version | awk '{print $2}')
- git tag -a v${{.PROJ_VERSION}} -m "v{{.PROJ_VERSION}}"
- git push origin v${{.PROJ_VERSION}}
build:image:
prompt: Have you made sure the version number is up to date?
desc: builds publishable python package
Expand Down

0 comments on commit 8e17464

Please sign in to comment.