Skip to content

Commit

Permalink
re-enable goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchavakis committed Jun 21, 2022
1 parent 5d0f44d commit 8361684
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 69 deletions.
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 Go project

on:
push:
tags:
- "v*" # triggers only if push new tag version, like `v0.8.4` or else

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- 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
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11 changes: 11 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
before:
hooks:
- go mod tidy
builds:
- skip: true
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
53 changes: 0 additions & 53 deletions Makefile.release

This file was deleted.

16 changes: 0 additions & 16 deletions version.go

This file was deleted.

0 comments on commit 8361684

Please sign in to comment.