Skip to content

fix syntax

fix syntax #26

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
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