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
17 changes: 11 additions & 6 deletions .github/workflows/ci-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI and Release

on:
push:
branches:
branches:
- '**'
tags:
- 'v*'
Expand All @@ -24,7 +24,10 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.24'

- name: Tidy modules
run: go mod tidy

- name: Run tests
run: go test -v ./...
Expand All @@ -46,7 +49,10 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.24'

- name: Tidy modules
run: go mod tidy

- name: Run tests
run: go test -v ./...
Expand Down Expand Up @@ -82,13 +88,12 @@ jobs:
sha256sum * > checksums.txt

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: |
dist/*
body_path: ${{ env.RELEASE_NOTES_FILE }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion cmd/patt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import (
"patt"
)

var version = "dev"

func main() {
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, os.Kill)
defer stop()
Expand All @@ -18,4 +20,4 @@ func exitIfErr(err error) {
_, _ = os.Stderr.WriteString(err.Error() + "\n")
os.Exit(1)
}
}
}