pjivers
pjivers

Reputation: 1929

Push git tags from Azure Pipeline to GitHub

I have an Azure Pipeline that I would like to push git tags on my master branch to GitHub when a build succeeds. I see lots of documentation about triggering pipelines by pushing tags, but not pushing tags from a pipeline.

Upvotes: 1

Views: 496

Answers (1)

VonC
VonC

Reputation: 1323523

Considering you can run Git commands in a script with Azure script, all you would need is:

git push --follow-tags origin master

This uses --follow-tags in order to push only the relevant tags.

Upvotes: 2

Related Questions