Skip to content

Commit

Permalink
Refactored workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mrusme committed Feb 28, 2022
1 parent 30b0fbb commit 06eff05
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 71 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/build.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/goreleaser.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/lint.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release

on:
push:
tags:
- '*'

jobs:

release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist --timeout 80m
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33 changes: 33 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# .goreleaser.yaml
builds:
-
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- netbsd
- openbsd
- freebsd
- plan9
- windows
goarch:
- 386
- amd64
- arm
- arm64
goarm:
- 6
- 7
ignore:
- goos: darwin
goarch: 386
- goos: darwin
goarch: arm
- goos: netbsd
goarch: arm64
- goos: freebsd
goarm: arm64
- goos: plan0
goarm: arm64

0 comments on commit 06eff05

Please sign in to comment.