Skip to content

Commit

Permalink
[ travis ] gh-pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
gallais committed Apr 6, 2018
1 parent 281d36f commit 7ab6190
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,17 @@ install:

script:
- cd ../src/
- agda linear/README.agda
- agda --html linear/README.agda
- cd ../
- mv src/html/* .

after_success:
# uploading to gh-pages
- git init
- git config --global user.name "Travis CI bot"
- git config --global user.email "[email protected]"
- git remote add upstream https://[email protected]/gallais/typing-with-leftover.git &>/dev/null
- git fetch upstream && git reset upstream/gh-pages
- git add -f \*.html
- git commit -m "Automatic HTML update via Travis"
- git push -q upstream HEAD:gh-pages &>/dev/null;

0 comments on commit 7ab6190

Please sign in to comment.