Skip to content
5 changes: 1 addition & 4 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
pull_request:
branches: [main]

env:
GO_VERSION: "1.25.1"

jobs:
go-test:
runs-on: ubuntu-latest
Expand All @@ -19,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod

- name: Run tests
run: go tool task test
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: Release arduino-app
name: Release arduino-router

on:
push:
tags:
- "*" # Trigger on all tags
- "v[0-9]+.[0-9]+.[0-9]+*"

env:
GO_VERSION: "1.25.1"
PROJECT_NAME: "arduino-router"
GITHUB_TOKEN: ${{ secrets.ARDUINOBOT_TOKEN }}
GITHUB_USERNAME: ArduinoBot
Expand Down Expand Up @@ -34,7 +33,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod

- name: Build deb
run: |
Expand Down
17 changes: 17 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,23 @@ tasks:
vars:
ARCH: '{{.ARCH | default "arm64"}}'

release:
desc: Create a tag on the current commit and push it to the remote to create the release
cmds:
- echo "Create tag version {{ .TAG }}"
- git tag "{{ .TAG }}"
- git push origin "{{ .TAG }}"
vars:
TAG:
sh: |
TAGARG="{{.CLI_ARGS}}"
if ! echo "$TAGARG" | grep -qE '^v[0-9]+\.[0-9]+\.[0-9]+.*$'; then
echo "Error: Version must match pattern 'v[0-9]+.[0-9]+.[0-9]+*'"
echo " Invalid version: $TAGARG"
echo " Valid examples: v1.0.0, v2.1.3, v1.0.0-beta, v3.2.1-rc.1"
exit 1
fi
echo $TAGARG
board:install:
desc: Install arduino-router on the board
interactive: true
Expand Down