Skip to content

Merge pull request #11 from Nicolas-ggd/lint-version #23

Merge pull request #11 from Nicolas-ggd/lint-version

Merge pull request #11 from Nicolas-ggd/lint-version #23

name: GO
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
build:
strategy:
matrix:
go-version: [1.23.0]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Build
run: go build
- name: Run Tests
run: go test
goreleaser:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.23.0
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: v1.9.2
args: release --rm-dist
env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
CGO_ENABLED: 0