File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1- name : Release arduino-app
1+ name : Release arduino-router
22
33on :
44 push :
55 tags :
6- - " *" # Trigger on all tags
6+ - " [0-9]+.[0-9]+.[0-9]+ *"
77
88env :
99 GO_VERSION : " 1.25.1"
Original file line number Diff line number Diff line change @@ -62,6 +62,18 @@ tasks:
6262 vars :
6363 ARCH : ' {{.ARCH | default "arm64"}}'
6464
65+
66+ release :
67+ desc : Create a tag on the current commit and push it to the remote to create the release
68+ cmds :
69+ - |
70+ if [ -z "{{.CLI_ARGS}}" ]; then
71+ echo "Error: Version argument is required. Usage: task release -- <version>"
72+ exit 1
73+ fi
74+ - git tag -a "{{.CLI_ARGS}}" -m "Release {{.CLI_ARGS}}"
75+ - git push origin "{{.CLI_ARGS}}"
76+
6577 board:install :
6678 desc : Install arduino-router on the board
6779 interactive : true
You can’t perform that action at this time.
0 commit comments