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

How to handle archival builds with gh-pages? #93

Closed
bebraw opened this issue Jun 28, 2016 · 2 comments
Closed

How to handle archival builds with gh-pages? #93

bebraw opened this issue Jun 28, 2016 · 2 comments

Comments

@bebraw
Copy link

bebraw commented Jun 28, 2016

I deploy the documentation sites of many of my projects through gh-pages. A while ago I realized that instead of nuking the whole site each time I publish, it would be nice to archive the old one below the previous version in the directory tree.

Is there some nice way to pull this off with gh-pages?

@tschaub
Copy link
Owner

tschaub commented Jun 28, 2016

You can use the add option for this. For example, if you wanted to leave old versions around, could do this by building new artifacts in a directory named like the version. For example, build/v1.2.3 would be generated when building v1.2.3. Then you can do this:

ghpages.publish('build', {add: true}, callback);

@bebraw
Copy link
Author

bebraw commented Jun 29, 2016

Perfect! Thanks a lot.

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