Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to build tags that are already pushed to a repo? #319

Open
moorepants opened this issue Aug 27, 2018 · 1 comment
Open

Possible to build tags that are already pushed to a repo? #319

moorepants opened this issue Aug 27, 2018 · 1 comment

Comments

@moorepants
Copy link
Contributor

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)?

@asmeurer
Copy link
Member

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants