-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
37 lines (36 loc) · 1.04 KB
/
Taskfile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: '3'
tasks:
gen:
dir: ./internal/dialectgen
cmds:
- 'go run github.com/rrgmc/litsql/internal/dialectgen --dialect=psql'
- 'go run github.com/rrgmc/litsql/internal/dialectgen --dialect=sqlite'
- 'go run github.com/rrgmc/litsql/internal/dialectgen --dialect=mysql'
current-version:
cmds:
- 'echo "Version: {{.GIT_TAG_CURRENT}}"'
silent: true
vars:
GIT_TAG_CURRENT:
sh: 'git describe --tags --abbrev=0'
release-version:
cmds:
- 'echo "Version: {{.GIT_TAG_CURRENT}} => {{.VERSION}}"'
- task: release-version-internal
vars:
GIT_TAG_CURRENT:
sh: 'git describe --tags --abbrev=0'
requires:
vars: [VERSION]
preconditions:
- sh: 'test -z "$(git status --porcelain)"'
msg: 'there are uncommited git changes'
silent: true
release-version-internal:
internal: true
prompt: "Creating and pushing tag {{.VERSION}}. Are you sure?"
cmds:
- 'git tag {{.VERSION}}'
- 'git push --tags'
requires:
vars: [VERSION]