Skip to content

Commit ae3d3c0

Browse files
authored
Merge pull request #1163 from xwp/bugfix/release-tagging
Automatically tag releases in the distribution repository
2 parents 88b7840 + 1e80e92 commit ae3d3c0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

local/scripts/dist.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ git commit --allow-empty --message "$COMMIT_MESSAGE"
3333
if [ -n "$DIST_TAG" ]; then
3434
echo "Tagging a release: $DIST_TAG"
3535
git tag --force "$DIST_TAG"
36+
git push --force --set-upstream origin --tags
37+
else
38+
# Syncing release artifacts for a branch.
39+
git push --force --set-upstream origin "$DIST_BRANCH"
3640
fi
37-
38-
git push --force --set-upstream origin "$DIST_BRANCH" --tags

0 commit comments

Comments
 (0)