Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions local/scripts/dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ git commit --allow-empty --message "$COMMIT_MESSAGE"
if [ -n "$DIST_TAG" ]; then
echo "Tagging a release: $DIST_TAG"
git tag --force "$DIST_TAG"
git push --force --set-upstream origin --tags
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dero I think the issue was caused by the $DIST_BRANCH being used together with the --tags flag. Now it will force-push all tags or just the specific branch.

I've tested this locally and it appears to be working as expected. Since this particular file isn't included in the release bundle I suggest we merge this in and test during the next release.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, looks good now. 👍

else
# Syncing release artifacts for a branch.
git push --force --set-upstream origin "$DIST_BRANCH"
fi

git push --force --set-upstream origin "$DIST_BRANCH" --tags