File tree Expand file tree Collapse file tree 5 files changed +69
-4
lines changed Expand file tree Collapse file tree 5 files changed +69
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : Go
2
+
2
3
on :
3
4
pull_request :
4
5
push :
@@ -12,12 +13,12 @@ jobs:
12
13
name : Verify
13
14
runs-on : ubuntu-latest
14
15
steps :
15
- - name : Set up Go 1.20
16
+ - name : Set up Go
16
17
uses : actions/setup-go@v5
17
18
with :
18
19
go-version : " 1.20"
19
20
20
- - name : Check out code into the Go module directory
21
+ - name : Checkout
21
22
uses : actions/checkout@v4
22
23
23
24
- name : Lint
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+
7
+ permissions :
8
+ contents : write
9
+
10
+ jobs :
11
+ goreleaser :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Set up Go
15
+ uses : actions/setup-go@v5
16
+ with :
17
+ go-version : " 1.20"
18
+
19
+ - name : Checkout
20
+ uses : actions/checkout@v4
21
+ with :
22
+ fetch-depth : 0
23
+
24
+ - name : Run GoReleaser
25
+ uses : goreleaser/goreleaser-action@v5
26
+ with :
27
+ version : v1.23.0
28
+ args : release --clean
29
+ env :
30
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
- /patch2pr
2
1
.idea /
3
2
3
+ /patch2pr
4
+ dist /
Original file line number Diff line number Diff line change
1
+ version : 1
2
+
3
+ builds :
4
+ - main : ./cmd/patch2pr
5
+ env :
6
+ - CGO_ENABLED=0
7
+ goos :
8
+ - linux
9
+ - windows
10
+ - darwin
11
+ goarch :
12
+ - amd64
13
+ - arm64
14
+ ignore :
15
+ - goos : windows
16
+ goarch : arm64
17
+
18
+ archives :
19
+ - format : tar.gz
20
+ name_template : " {{ .ProjectName }}_v{{ .Version }}_{{ .Os }}-{{ .Arch }}"
21
+ format_overrides :
22
+ - goos : windows
23
+ format : zip
24
+ files :
25
+ # https://github.com/goreleaser/goreleaser/issues/602
26
+ - none*
27
+
28
+ release :
29
+ mode : keep-existing
Original file line number Diff line number Diff line change @@ -16,7 +16,9 @@ that uses this library to apply it and create a pull request.
16
16
17
17
## Usage: CLI
18
18
19
- Install the CLI using ` go install ` :
19
+ Pre-built binaries for common platforms are available on the [ releases] [ ] page.
20
+
21
+ You can also install from source using ` go install ` :
20
22
21
23
go install github.com/bluekeyes/patch2pr/cmd/patch2pr@latest
22
24
@@ -39,6 +41,8 @@ For example:
39
41
40
42
See the CLI help (` -h ` or ` -help ` ) or below for full details.
41
43
44
+ [ releases ] : https://github.com/bluekeyes/patch2pr/releases
45
+
42
46
### Full Usage
43
47
44
48
```
You can’t perform that action at this time.
0 commit comments