Description
It would be convenient to have PDFs attached to each release. With a bit of configuration, this can be done automatically from Travis; I made the necessary changes at nemequ/cppdraft, but I can't just file a PR since it will have to be tweaked to set a correct API key (and repo name) for this repo.
I went ahead and added a n0000 tag so you can see the effect.
Travis has some documentation explaining how to deploy to GH releases using an OAuth key. Notice that last paragraph; they suggest creating a dedicated user since the keys are for your user, not a specific repository... seems like a good idea to me.
If you want I can create an account and put everything together, then just turn over the credentials to you. If I do that I could just file a PR. Otherwise...
Once you've created a user, you can use the travis
CLI to get the OAuth token, encrypt it, and add it to the .travis.yml with travis setup releases
. It mangles the .travis.yml file pretty badly, it's still the easiest way to get the encrypted token.
After you have the token,you just need some small tweaks After that you'll just want to add a couple conditions to the deploy hook, and tweak the build a bit to copy the generated PDF out of the Docker container, etc. Basically, just grab the .travis.yml from my repo, replace repo: nemequ/cppdraft
with repo: cplusplus/draft
and replace the API key.