mirror of
https://github.com/onyx-and-iris/nvda-addon-voicemeeter.git
synced 2026-03-20 20:09:11 +00:00
add bump task
This commit is contained in:
parent
8b025206b1
commit
df023c67ea
15
Taskfile.yml
15
Taskfile.yml
@ -24,3 +24,18 @@ tasks:
|
||||
platforms: [windows]
|
||||
cmds:
|
||||
- '{{.SHELL}} -Command "pdm run scons"'
|
||||
|
||||
bump:
|
||||
desc: Bump the version number
|
||||
preconditions:
|
||||
- sh: '{{.SHELL}} -c "if (Get-Command bump) { exit 0 } else { exit 1 }"'
|
||||
msg: "The 'bump' command is not available. Run `go install github.com/onyx-and-iris/bump/cmd/bump@latest`."
|
||||
cmds:
|
||||
- |
|
||||
{{if eq .CLI_ARGS "show"}}
|
||||
{{.SHELL}} -c "bump show -f buildVars.py -p \"'addon_version': '(\d+\.\d+\.\d+)'\""
|
||||
{{.SHELL}} -c "bump show -f pyproject.toml -p \"version = .(\d+\.\d+\.\d+).\""
|
||||
{{else}}
|
||||
{{.SHELL}} -c "bump {{.CLI_ARGS}} -w -f buildVars.py -p \"'addon_version': '(\d+\.\d+\.\d+)'\""
|
||||
{{.SHELL}} -c "bump {{.CLI_ARGS}} -w -f pyproject.toml -p \"version = .(\d+\.\d+\.\d+).\""
|
||||
{{end}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user