Skip to content

Commit 830a7ff

Browse files
committed
ci: improve hugomanager release config for monorepo
1 parent bff2661 commit 830a7ff

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/release-hugomanager.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
uses: mathieudutour/github-tag-action@v6.2
4747
with:
4848
custom_tag: "${{ steps.read-version.outputs.version }}-hugomanager"
49-
tag_prefix: "" # To prevent extra "v" in the prefix
49+
tag_prefix: ""
5050
github_token: ${{ secrets.GITHUB_TOKEN }}
5151

5252
releaseBinary:
@@ -68,7 +68,9 @@ jobs:
6868
persist-credentials: true
6969

7070
- name: Fetch git tags
71-
run: git fetch --force --tags origin 'refs/tags/*-hugomanager:refs/tags/*-hugomanager'
71+
run: |
72+
git fetch --force --tags origin 'refs/tags/*-hugomanager:refs/tags/*-hugomanager'
73+
git tag -d $(git tag -l | grep -v 'hugomanager$')
7274
7375
- uses: actions/setup-go@v5
7476
with:

.hugomanager.goreleaser.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
32
version: 2
43
# Ref: https://goreleaser.com
54
before:

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
check_release_config:
2-
goreleaser check
2+
goreleaser check .goreleaser.yaml
3+
goreleaser check .hugomanager.goreleaser.yaml

0 commit comments

Comments
 (0)