Skip to content

Commit 30af0f6

Browse files
committed
fix: update release workflow name and refine tag creation process
1 parent 9a422b7 commit 30af0f6

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Release arduino-app
1+
name: Release arduino-router
22

33
on:
44
push:
55
tags:
6-
- "*" # Trigger on all tags
6+
- "[0-9]+.[0-9]+.[0-9]+*"
77

88
env:
99
GO_VERSION: "1.25.1"

Taskfile.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)