简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM