We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9809809 commit 8e17464Copy full SHA for 8e17464
Taskfile.yml
@@ -4,11 +4,14 @@ dotenv: ['.env']
4
5
tasks:
6
publish:tag:
7
- prompt: "Before we build, is the version number up to date?"
+ vars:
8
+ PROJ_VERSION:
9
+ sh: poetry version | awk '{print $2}'
10
+ prompt: "Before we build, is the version {{.PROJ_VERSION}} number up to date?"
11
desc: tags the current commit
12
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}')
13
+ - git tag -a v${{.PROJ_VERSION}} -m "v{{.PROJ_VERSION}}"
14
+ - git push origin v${{.PROJ_VERSION}}
15
build:image:
16
prompt: Have you made sure the version number is up to date?
17
desc: builds publishable python package
0 commit comments