Skip to content

Commit

Permalink
Go releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
crashdump committed Jan 31, 2021
1 parent 473c3be commit e8ec9c6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ jobs:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2

- uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: actions/setup-go@v2

- uses: goreleaser/goreleaser-action@v2.4.1
- uses: goreleaser/goreleaser-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version: latest
args: release --rm-dist
8 changes: 5 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
project_name: covert
release:
github:
owner: covert
owner: crashdump
name: covert
name_template: 'Release {{.Tag}}'
before:
hooks:
- go mod download
builds:
- binary: covert
main: ./cmd/
env:
- CGO_ENABLED=0
- GO111MODULE=on
Expand Down Expand Up @@ -38,7 +39,8 @@ archives:
- goos: windows
format: zip
files:
- LICENSE
- docs/*
- LICENSE.md
- README.md
checksum:
name_template: 'checksums.txt'
Expand All @@ -49,4 +51,4 @@ changelog:
sort: asc
filters:
exclude:
- '^tests:'
- '^tests:'
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ test:
go test -v ./... -coverprofile=coverage.out

coverage:
go tool cover -html=coverage.out
go tool cover -html=coverage.out

release-test:
goreleaser --snapshot --skip-publish --rm-dist

0 comments on commit e8ec9c6

Please sign in to comment.