Skip to content

feat: Add --profile flag and conditional gcflags for tagged builds #194

feat: Add --profile flag and conditional gcflags for tagged builds

feat: Add --profile flag and conditional gcflags for tagged builds #194

Workflow file for this run

name: Build & Test
on:
push:
branches:
- 'master'
pull_request:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.23"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: v1.26.2
args: release --clean --snapshot --skip=publish
env:
GOFLAGS: ${{ (github.ref_type == 'tag' && contains(github.ref_name, '-')) && '-gcflags="all=-N -l"' || '' }}