File tree 6 files changed +29
-18
lines changed
6 files changed +29
-18
lines changed Original file line number Diff line number Diff line change 2
2
3
3
on :
4
4
push :
5
- branches : [ master ]
6
5
pull_request :
7
6
branches : [ master ]
8
7
13
12
runs-on : ubuntu-latest
14
13
steps :
15
14
16
- - name : Set up Go 1.4
15
+ - name : Set up Go 1.14
17
16
uses : actions/setup-go@v2
18
17
with :
19
18
go-version : ^1.14
27
26
28
27
- name : Test
29
28
run : go test -v ./...
29
+
30
+ release :
31
+ name : Release
32
+ runs-on : ubuntu-latest
33
+ if : startsWith(github.ref, 'refs/tags/v')
34
+ needs :
35
+ - build
36
+ steps :
37
+ - name : Checkout
38
+ uses : actions/checkout@v2
39
+ with :
40
+ fetch-depth : 0
41
+ - name : Setup Go
42
+ uses : actions/setup-go@v2
43
+ - name : Run GoReleaser
44
+ uses : goreleaser/goreleaser-action@v2
45
+ with :
46
+ version : latest
47
+ args : release --rm-dist
48
+ env :
49
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ builds :
2
+ - goos :
3
+ - linux
4
+ - windows
5
+ - darwin
Original file line number Diff line number Diff line change @@ -36,23 +36,9 @@ The classic way to install
36
36
go get -u github.com/cosmtrek/air
37
37
```
38
38
39
- ### macOS
39
+ ### macOS, Linux, Windows
40
40
41
- ``` bash
42
- curl -fLo air https://git.io/darwin_air
43
- ```
44
-
45
- ### Linux
46
-
47
- ``` bash
48
- curl -fLo air https://git.io/linux_air
49
- ```
50
-
51
- ### Windows
52
-
53
- ``` bash
54
- curl -fLo air.exe https://git.io/windows_air
55
- ```
41
+ The binary is published on the [ release page] ( https://github.com/cosmtrek/air/releases ) .
56
42
57
43
P.S. Great thanks mattn's [ PR] ( https://github.com/cosmtrek/air/pull/1 ) for supporting Windows platform.
58
44
You can’t perform that action at this time.
0 commit comments