File tree Expand file tree Collapse file tree 3 files changed +85
-1
lines changed Expand file tree Collapse file tree 3 files changed +85
-1
lines changed Original file line number Diff line number Diff line change 4
4
tags :
5
5
- " v*.*.*"
6
6
7
+ permissions :
8
+ contents : write
9
+
7
10
jobs :
8
11
publish :
9
12
name : release vscode extension
16
19
sudo npm -g install n
17
20
sudo n stable
18
21
- name : checkout
19
- uses : actions/checkout@v3
22
+ uses : actions/checkout@v4
23
+ with :
24
+ fetch-depth : 0
20
25
- uses : actions/setup-go@v4
21
26
with :
22
27
go-version : ' 1.21'
33
38
run : |
34
39
mkdir assets
35
40
mv ./lsp/client/vscode/grpc-federation-*.vsix assets/
41
+ - name : run GoReleaser
42
+ uses : goreleaser/goreleaser-action@v5
43
+ with :
44
+ distribution : goreleaser
45
+ version : latest
46
+ args : release --skip-publish --clean
47
+ - name : move built extension to publish directory
48
+ run : |
49
+ mkdir assets
50
+ mv ./dist/grpc-federation_*_checksums.txt assets/
51
+ mv ./dist/grpc-federation_*_*_*.tar.gz assets/
52
+ mv ./dist/grpc-federation_*_*_*.zip assets/
36
53
- name : release
37
54
uses : softprops/action-gh-release@v1
38
55
with :
Original file line number Diff line number Diff line change 16
16
17
17
.DS_Store
18
18
bin
19
+
20
+ dist /
Original file line number Diff line number Diff line change
1
+ # This is an example .goreleaser.yml file with some sensible defaults.
2
+ # Make sure to check the documentation at https://goreleaser.com
3
+
4
+ # The lines bellow are called `modelines`. See `:help modeline`
5
+ # Feel free to remove those if you don't want/need to use them.
6
+ # yaml-language-server: $schema=https://goreleaser.com/static/schema.json
7
+ # vim: set ts=2 sw=2 tw=0 fo=cnqoj
8
+
9
+ before :
10
+ hooks :
11
+ # You may remove this if you don't use go modules.
12
+ - go mod tidy
13
+ # you may remove this if you don't need go generate
14
+ - go generate ./...
15
+
16
+ builds :
17
+ - id : grpc-federation-generator
18
+ main : ./cmd/grpc-federation-generator
19
+ binary : grpc-federation-generator
20
+ env :
21
+ - CGO_ENABLED=0
22
+ goos :
23
+ - linux
24
+ - windows
25
+ - darwin
26
+ - id : grpc-federation-language-server
27
+ main : ./cmd/grpc-federation-language-server
28
+ binary : grpc-federation-language-server
29
+ env :
30
+ - CGO_ENABLED=0
31
+ goos :
32
+ - linux
33
+ - windows
34
+ - darwin
35
+ - id : grpc-federation-linter
36
+ main : ./cmd/grpc-federation-linter
37
+ binary : grpc-federation-linter
38
+ env :
39
+ - CGO_ENABLED=0
40
+ goos :
41
+ - linux
42
+ - windows
43
+ - darwin
44
+ - id : protoc-gen-grpc-federation
45
+ main : ./cmd/protoc-gen-grpc-federation
46
+ binary : protoc-gen-grpc-federation
47
+ env :
48
+ - CGO_ENABLED=0
49
+ goos :
50
+ - linux
51
+ - windows
52
+ - darwin
53
+
54
+ archives :
55
+ - format : tar.gz
56
+ format_overrides :
57
+ - goos : windows
58
+ format : zip
59
+
60
+ changelog :
61
+ sort : asc
62
+ filters :
63
+ exclude :
64
+ - " ^docs:"
65
+ - " ^test:"
You can’t perform that action at this time.
0 commit comments