morevnaproject-org / subtitles-translation

Subtitles for animated shorts of Morevna Project
Creative Commons Attribution 4.0 International
7 stars 21 forks source link

Add travis automatic srt generation #54

Closed scribblemaniac closed 7 years ago

scribblemaniac commented 7 years ago

This will use Travis to automatically commit updates to the srt files when changes to the msrt files are pushed. Before this will work properly, @morevnaproject will need to sign into Travis CI and enable travis integration for this repository. Then generate a Github access token and either add it to the .travis.yml file with these commands in the main repo directory:

gem install travis
travis encrypt --add -repo morevnaproject/subtitles-translation GH_REPO_TOKEN=<access_token>

or by adding it to the environment variables section of the travis repository settings with the name GH_REPO_TOKEN and the value of your personal access token.

morevnaproject commented 7 years ago

Fantastic! ^__^

morevnaproject commented 7 years ago

I have set up Travis configuration. I am not sure where to generate GitHub access token?

scribblemaniac commented 7 years ago

It's under your Github settings. This should probably link to the right page: https://github.com/settings/tokens Then you click generate token, give it a name, and give it the public_repo permission.

morevnaproject commented 7 years ago

Done! I have generated a token and added it to Travis. screenshot_009

scribblemaniac commented 7 years ago

Okay, this should be ready to pull then! 😉