Skip to content

Commit

Permalink
added goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmittag committed Jun 4, 2022
1 parent 75caa5e commit 5908e68
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 6 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: goreleaser

on:
push:
tags:
- "*"

permissions:
contents: write

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.18
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: ${{ env.GITHUB_REF_NAME }}
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}
31 changes: 31 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
builds:
- binary: mse6
main: cmd/mse6/main.go
goos:
- darwin
- linux
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0

release:
prerelease: auto

universal_binaries:
- replace: true

brews:
-
name: mse6
homepage: "https://github.com/simonmittag/mse6"
tap:
owner: simonmittag
name: homebrew-cli
commit_author:
name: simonmittag
email: [email protected]

checksum:
name_template: 'checksums.txt'
12 changes: 6 additions & 6 deletions ReadMe.Md
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ behaviour that is otherwise difficult to observe or reproduce under test conditi
### Docker
```
docker pull simonmittag/mse6 &&
docker run -p8081:8081 simonmittag/mse6
docker run -p8081:8081 simonmittag/mse6
```

### Osx
### Homebrew
```
brew install simonmittag/cli/mse6 &&
mse6
brew tap simonmittag/cli &&
brew install mse6 &&
mse6
```

### Golang
```bash
go get github.com/simonmittag/mse6 &&
go install github.com/simonmittag/mse6/cmd/mse6 &&
mse6
mse6
```

## Usage
Expand Down

0 comments on commit 5908e68

Please sign in to comment.