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

Add github pages deployment to travis #133

Open
zakpatterson opened this issue Jan 24, 2019 · 2 comments
Open

Add github pages deployment to travis #133

zakpatterson opened this issue Jan 24, 2019 · 2 comments

Comments

@zakpatterson
Copy link
Collaborator

On successful build from travis, the most recent generated docs should be deployed to the github pages site.

So far this has been done manually: https://github.com/pauljamescleary/scala-pet-store/deployments

Adding docs deployment to the travis configuration

Necessary steps:

  1. ⬜️ Add secure github api token to repository so it can be used in travis build
  2. ⬜️ Add tut build step to travis build, fail the build if tut fails.
  3. ⬜️ Deploy docs to github pages if successful, fail the build if deployment fails.
@pauljamescleary
Copy link
Owner

I actually have this setup on vinyldns - https://github.com/vinyldns/vinyldns

This is the sbt configuration...
https://github.com/vinyldns/vinyldns/blob/546cd49128db733f0bf795e11de028332b799499/build.sbt#L378

Here is the travis configuration...

https://github.com/vinyldns/vinyldns/blob/546cd49128db733f0bf795e11de028332b799499/.travis.yml#L46

We are using plugins...

addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.6.2")

addSbtPlugin("com.47deg"  % "sbt-microsites" % "0.7.24")

@zakpatterson
Copy link
Collaborator Author

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