Skip to content

Commit 640c630

Browse files
committed
feat: adds task to tag a release and push to origin
1 parent b7a3a2d commit 640c630

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Taskfile.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ dotenv: ['.env']
44

55
tasks:
66
build:image:
7+
prompt: "Before we build, is the version number up to date?"
78
desc: builds a publishable docker image
89
cmds:
910
- |
@@ -16,6 +17,18 @@ tasks:
1617
vars:
1718
PROJ_VER:
1819
sh: "task version"
20+
release:tag:
21+
prompt: "Before we push, is the version number up to date?"
22+
desc: tag a release and push to origin
23+
summary: |
24+
This will tag a release and push it to origin, it will also push
25+
the tag to the remote origin.
26+
cmds:
27+
- git tag -a v{{.PROJ_VER}} -m "chore release v{{.PROJ_VER}}"
28+
- git push origin v{{.PROJ_VER}}
29+
vars:
30+
PROJ_VER:
31+
sh: "task version"
1932
dev:test:
2033
desc: runs tests inside the server container
2134
summary: |
@@ -106,6 +119,7 @@ tasks:
106119
# sed 's/ /./g' | \
107120
# tee .version
108121
eject:
122+
prompt: "Are you sure you want to eject the template?"
109123
desc: eject the project from a template
110124
summary: |
111125
This process will remove any references to the Anomaly labs template,

0 commit comments

Comments
 (0)