Skip to content

Read binary version using BuildInfo #42

Read binary version using BuildInfo

Read binary version using BuildInfo #42

Workflow file for this run

name: Main
on: push
permissions:
contents: write
jobs:
test_publish:
name: Test and publish
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0 # Needed to describe git ref during build.
- name: Export GOBIN
uses: actions/setup-go@v4
with:
go-version: '1.24.0'
- name: Install dependencies
run: make setup
- name: Run tests
run: make test
- name: Build
run: make build
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
if: startsWith(github.ref, 'refs/tags/v') # Only release for tagged commits.
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}