File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Release
33on :
44 push :
55 tags :
6- - " [0-9]+.[0-9]+.[0-9]+*"
6+ - " v [0-9]+.[0-9]+.[0-9]+*"
77
88env :
99 PROJECT_NAME : " arduino-flasher-cli"
Original file line number Diff line number Diff line change @@ -81,6 +81,17 @@ tasks:
8181 - test -f ./updater/artifacts/resources_windows_amd64/qdl.exe
8282 cmd : sh ./updater/artifacts/download_resources.sh
8383
84+ release :
85+ desc : Create a tag on the current commit and push it to the remote to create the release
86+ cmds :
87+ - |
88+ if [ -z "{{.CLI_ARGS}}" ]; then
89+ echo "Error: Version argument is required. Usage: task release -- <version>"
90+ exit 1
91+ fi
92+ - git tag -a "{{.CLI_ARGS}}" -m "Release {{.CLI_ARGS}}"
93+ - git push origin "{{.CLI_ARGS}}"
94+
8495 # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-dependencies-task/Taskfile.yml
8596 general:cache-dep-licenses :
8697 desc : Cache dependency license metadata
You can’t perform that action at this time.
0 commit comments