Skip to content

feat: Updated build infrastructure #9

feat: Updated build infrastructure

feat: Updated build infrastructure #9

Workflow file for this run

# code: language=github-actions.workflows tabSize=2
---
name: Build
on:
push:
tags-ignore:
- v*
paths:
- .github/workflows/build.yml
- .goreleaser.yaml
- "**.go"
- go.mod
- go.sum
pull_request:
paths:
- .github/workflows/build.yml
- .goreleaser.yaml
- "**.go"
- go.mod
- go.sum
permissions:
contents: read
env:
GO_VERSION: ${{ vars.golang_version || '1.20' }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: GoReleaser
uses: goreleaser/[email protected]
with:
distribution: goreleaser
version: latest
args: build --skip-validate --clean --single-target --id linux