diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1a3257b..7623b17 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,6 +24,5 @@ jobs: uses: goreleaser/goreleaser-action@master with: args: release - workdir: ./cmd/git-open env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..48d7c89 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,51 @@ +env: + - GO111MODULE=on + - GOPROXY=https://gocenter.io +before: + hooks: + - go mod download +builds: +- env: + - CGO_ENABLED=0 + goos: + - linux + - darwin + - windows + goarch: + - 386 + - amd64 + - arm + - arm64 + ignore: + - goos: darwin + goarch: 386 + mod_timestamp: '{{ .CommitTimestamp }}' + flags: + - -trimpath + ldflags: + - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X main.builtBy=goreleaser + main: ./cmd/git-open/main.go + binary: git-open +checksum: + name_template: '{{ .ProjectName }}_checksums.txt' +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' + - Merge pull request + - Merge branch + - go mod tidy + +archives: + - name_template: 'git-open_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' + replacements: + darwin: Darwin + linux: Linux + windows: Windows + 386: i386 + amd64: x86_64 + format_overrides: + - goos: windows + format: zip diff --git a/README.md b/README.md index 302ebe4..6263442 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ git open ## Installation -todo.. +Download the binary from the [Latest Release](https://github.com/mogensen/go-git-open/releases/latest/) and add it to your path (`/usr`) ## Supported remote repositories