Skip to content

Commit

Permalink
Add GoReleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-gregory-ovo committed Oct 3, 2022
1 parent 6ae6127 commit e74920c
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: goreleaser

on:
push:
tags:
- '*'

permissions:
contents: read

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
cache: true
- uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 8 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
project_name: go-sync
before:
hooks:
- go mod tidy
builds:
- skip: true
changelog:
sort: asc
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ _* Doesn't have to be people._
## Installation

```shell
go get github.com/ovotech/go-sync
go get github.com/ovotech/go-sync@latest
```

You're ready to Go Sync 🎉
Expand Down

0 comments on commit e74920c

Please sign in to comment.