Skip to content

Commit 4949473

Browse files
aeimerAlexander Eimer
authored andcommitted
feat: Almost final step
1 parent 735aa5b commit 4949473

File tree

4 files changed

+8
-15
lines changed

4 files changed

+8
-15
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,3 @@ node_modules/
3838
# GoReleaser
3939
/dist/
4040
/completions/
41-
# template output
42-
.goreleaser.yaml
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
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-
63
before:
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

9390
brews:
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

RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
We use [GoReleaser](https://goreleaser.com/) to create static binaries and Docker Buildx to build multi-architecture
44
images.
55

6-
The relevant configuration for the release process is in [template.goreleaser.yml](template.goreleaser.yaml)
6+
The relevant configuration for the release process is in [.goreleaser.yml](.goreleaser.yaml)
77
and [release/source.sh](release/source.sh). It **automatically** fetches the **latest** Go, Goreleaser and Protobuf
88
versions via GitHub API.
99

release/30-build-go-archive.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ set -euo pipefail
33

44
source release/source.sh
55

6-
cp template.goreleaser.yaml .goreleaser.yaml
7-
sed -i "s/__PROTO_VERSION__/$PROTO_VERSION/g" .goreleaser.yaml
8-
96
set -x
107

118
goreleaser check

0 commit comments

Comments
 (0)