Skip to content

Commit 3b3b71d

Browse files
committed
Fix GoReleaser: strip monorepo tag prefix via GORELEASER_CURRENT_TAG
1 parent 17bd444 commit 3b3b71d

4 files changed

Lines changed: 14 additions & 18 deletions

File tree

.github/workflows/release-gqlkit-sdl.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ jobs:
1717
with:
1818
fetch-depth: 0
1919

20+
- name: Create semver tag
21+
run: |
22+
VERSION="${GITHUB_REF#refs/tags/gqlkit-sdl/}"
23+
git tag "$VERSION"
24+
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
25+
2026
- name: Set up Go
2127
uses: actions/setup-go@v5
2228
with:
@@ -30,3 +36,4 @@ jobs:
3036
workdir: gqlkit-sdl
3137
env:
3238
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
GORELEASER_CURRENT_TAG: ${{ env.VERSION }}

.github/workflows/release-gqlkit.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ jobs:
1717
with:
1818
fetch-depth: 0
1919

20+
- name: Create semver tag
21+
run: |
22+
VERSION="${GITHUB_REF#refs/tags/gqlkit/}"
23+
git tag "$VERSION"
24+
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
25+
2026
- name: Set up Go
2127
uses: actions/setup-go@v5
2228
with:
@@ -30,3 +36,4 @@ jobs:
3036
workdir: gqlkit
3137
env:
3238
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
GORELEASER_CURRENT_TAG: ${{ env.VERSION }}

gqlkit-sdl/.goreleaser.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,6 @@ version: 2
22

33
project_name: gqlkit-sdl
44

5-
git:
6-
tag_sort: -version:refname
7-
prerelease_suffix: "-"
8-
ignore_tags:
9-
- "gqlkit/v*"
10-
11-
monorepo:
12-
tag_prefix: gqlkit-sdl/
13-
145
builds:
156
- id: gqlkit-sdl
167
binary: gqlkit-sdl

gqlkit/.goreleaser.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,6 @@ version: 2
22

33
project_name: gqlkit
44

5-
git:
6-
tag_sort: -version:refname
7-
prerelease_suffix: "-"
8-
ignore_tags:
9-
- "gqlkit-sdl/v*"
10-
11-
monorepo:
12-
tag_prefix: gqlkit/
13-
145
builds:
156
- id: gqlkit
167
main: ./cmd/cli

0 commit comments

Comments
 (0)