Skip to content

chore: Update workflow steps, remove obsolete build file #114

chore: Update workflow steps, remove obsolete build file

chore: Update workflow steps, remove obsolete build file #114

Workflow file for this run

name: Go-CI
on:
push:
branches: [ master ]
tags: [ '**' ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
lint:
name: lint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Build
run: go build -v ./...
release:
runs-on: ubuntu-22.04
needs: [ lint, build ]
if: ${{ startsWith(github.ref, 'refs/tags/') && contains(fromJSON('["mxschmitt", "JonasProgrammer"]'), github.actor) }}
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}