Skip to content

Commit 791b03a

Browse files
authored
fix: add release tags for go modules (#1484)
Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
1 parent 480c095 commit 791b03a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/tag.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,21 @@ jobs:
147147
fi
148148
make build-cli
149149
make helm-version
150+
- name: Create Go module tags
151+
if: startsWith(github.ref, 'refs/tags/')
152+
run: |
153+
VERSION=$(echo "$GITHUB_REF" | cut -c12-)
154+
155+
# Create module-prefixed tags for each Go sub-module
156+
for module in api core adk; do
157+
TAG="go/${module}/${VERSION}"
158+
echo "Creating tag: ${TAG}"
159+
git tag "${TAG}"
160+
done
161+
162+
# Push all module tags
163+
git push origin "go/api/${VERSION}" "go/core/${VERSION}" "go/adk/${VERSION}"
164+
150165
- name: Release
151166
uses: softprops/action-gh-release@v2
152167
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)