Skip to content

Commit 323fbdc

Browse files
committed
Add install info
1 parent 7e64ab6 commit 323fbdc

File tree

3 files changed

+52
-2
lines changed

3 files changed

+52
-2
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,5 @@ jobs:
2424
uses: goreleaser/goreleaser-action@master
2525
with:
2626
args: release
27-
workdir: ./cmd/git-open
2827
env:
2928
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
env:
2+
- GO111MODULE=on
3+
- GOPROXY=https://gocenter.io
4+
before:
5+
hooks:
6+
- go mod download
7+
builds:
8+
- env:
9+
- CGO_ENABLED=0
10+
goos:
11+
- linux
12+
- darwin
13+
- windows
14+
goarch:
15+
- 386
16+
- amd64
17+
- arm
18+
- arm64
19+
ignore:
20+
- goos: darwin
21+
goarch: 386
22+
mod_timestamp: '{{ .CommitTimestamp }}'
23+
flags:
24+
- -trimpath
25+
ldflags:
26+
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X main.builtBy=goreleaser
27+
main: ./cmd/git-open/main.go
28+
binary: git-open
29+
checksum:
30+
name_template: '{{ .ProjectName }}_checksums.txt'
31+
changelog:
32+
sort: asc
33+
filters:
34+
exclude:
35+
- '^docs:'
36+
- '^test:'
37+
- Merge pull request
38+
- Merge branch
39+
- go mod tidy
40+
41+
archives:
42+
- name_template: 'git-open_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
43+
replacements:
44+
darwin: Darwin
45+
linux: Linux
46+
windows: Windows
47+
386: i386
48+
amd64: x86_64
49+
format_overrides:
50+
- goos: windows
51+
format: zip

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ git open
1717

1818
## Installation
1919

20-
todo..
20+
Download the binary from the [Latest Release](https://github.com/mogensen/go-git-open/releases/latest/) and add it to your path (`/usr`)
2121

2222
## Supported remote repositories
2323

0 commit comments

Comments
 (0)