11# Documentation at https://goreleaser.com
22
3- # This file is a template and expressions such as __PROTOC_VERSION__ are replaced
4- # with environment variables such as $PROTOC_VERSION before usage.
5-
63before :
74 hooks :
85 - ./release/completions.sh
@@ -33,10 +30,10 @@ archives:
3330 - LICENSE.md
3431 - completions/*
3532 # copy protoc binaries and their .proto files previously downloaded
36- - src : ' release/tmp/protoc-__PROTO_VERSION__ -{{ .Os }}-{{ .Arch }}/bin'
33+ - src : ' release/tmp/protoc-{{ .Version }} -{{ .Os }}-{{ .Arch }}/bin'
3734 dst : ' protocurl-internal/bin'
3835 strip_parent : true # avoids, that protoc is copied into protocurl-internal/bin/release/tmp/.../bin
39- - src : ' release/tmp/protoc-__PROTO_VERSION__ -{{ .Os }}-{{ .Arch }}/include/google/protobuf'
36+ - src : ' release/tmp/protoc-{{ .Version }} -{{ .Os }}-{{ .Arch }}/include/google/protobuf'
4037 dst : ' protocurl-internal/include/google/protobuf'
4138 strip_parent : true
4239
@@ -85,13 +82,14 @@ nfpms:
8582 - src : LICENSE.md
8683 dst : /opt/protocurl/LICENSE.md
8784 # copy protoc binaries and their .proto files previously downloaded
88- - src : ' release/tmp/protoc-__PROTO_VERSION__ -{{ .Os }}-{{ .Arch }}/bin'
85+ - src : ' release/tmp/protoc-{{ .Version }} -{{ .Os }}-{{ .Arch }}/bin'
8986 dst : ' /opt/protocurl/protocurl-internal/bin'
90- - src : ' release/tmp/protoc-__PROTO_VERSION__ -{{ .Os }}-{{ .Arch }}/include/google/protobuf'
87+ - src : ' release/tmp/protoc-{{ .Version }} -{{ .Os }}-{{ .Arch }}/include/google/protobuf'
9188 dst : ' /opt/protocurl/protocurl-internal/include/google/protobuf'
9289
9390brews :
94- - homepage : https://gitlab.com/{{ .Env.PROJECT_PATH }}
91+ - name : protocurl@{{ .Major }}.{{ .Minor }}.{{ .Patch }}
92+ homepage : https://gitlab.com/{{ .Env.PROJECT_PATH }}
9593 description : >-
9694 protoCURL is cURL for Protobuf:
9795 The command-line tool for interacting with Protobuf over
@@ -104,7 +102,7 @@ brews:
104102 owner : qaware
105103 name : homebrew-tap
106104 branch : main
107- token : " {{ .Env.GH_TOKEN_QAWARE_TAP_REPO }}" # TODO: Setup token
105+ token : " {{ .Env.GH_TOKEN_QAWARE_TAP_REPO }}"
108106 folder : Formula
109107 dependencies :
110108 - name : curl
0 commit comments