doctr
doctr copied to clipboard
Possible to build tags that are already pushed to a repo?
I'm having trouble figuring out exactly how the --build-tags
flag works. I have a repo that a bunch of tags that have been pushed over the years. I am now using doctr and would like it to build the docs for all these prior versions. The main question is if I add --build-tags
will travis build all tags on every new commit pushed to the repo? Or does it only build when a new tag is pushed up? If the later, how do we get doctr to build for the tags that have already been pushed (before using doctr)?
It only builds new tags. It's not possible to build older tags because doctr won't be set up on those tags. You'll need to build and deploy them manually. It will build for new tags. Travis does special builds for tags, which duplicate the build for the commit that is tagged.
If you really want to use doctr, you could build a custom .travis.yml in a branch that checks out a tag before building, and deploys to the appropriate place. Or create branches based off each tag that modify the .travis.yml to run doctr (in either case, remember --no-require-master
).