Skip to content

Commit

Permalink
feat(action): adding goreleaser action on push to tag (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
derektamsen authored Apr 15, 2023
1 parent 9a60819 commit 39ca48b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 67 deletions.
63 changes: 0 additions & 63 deletions .circleci/config.yml

This file was deleted.

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

on:
push:
tags: [ 'v*' ]

permissions:
contents: write

jobs:

goreleaser:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v4

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ install:
build:
$(GOBUILD) $(LDFLAGS) -o $(BINPATH)/$(BINARY_NAME) -v ./cmd/$(BINARY_NAME)

deploy:
go install github.com/goreleaser/goreleaser@latest
goreleaser release --rm-dist

lint:
GO111MODULE=off go get -u golang.org/x/lint/golint
golint -set_exit_status ./...
Expand Down

0 comments on commit 39ca48b

Please sign in to comment.