Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+*"
- "v[0-9]+.[0-9]+.[0-9]+*"

env:
PROJECT_NAME: "arduino-flasher-cli"
Expand Down
11 changes: 11 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,17 @@ tasks:
- test -f ./updater/artifacts/resources_windows_amd64/qdl.exe
cmd: sh ./updater/artifacts/download_resources.sh

release:
desc: Create a tag on the current commit and push it to the remote to create the release
cmds:
- |
if [ -z "{{.CLI_ARGS}}" ]; then
echo "Error: Version argument is required. Usage: task release -- <version>"
exit 1
fi
- git tag -a "{{.CLI_ARGS}}" -m "Release {{.CLI_ARGS}}"
- git push origin "{{.CLI_ARGS}}"

# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-dependencies-task/Taskfile.yml
general:cache-dep-licenses:
desc: Cache dependency license metadata
Expand Down