Skip to content
This repository has been archived by the owner on Aug 17, 2024. It is now read-only.

Commit

Permalink
Add publish-doc script
Browse files Browse the repository at this point in the history
  • Loading branch information
Peltoche committed Mar 5, 2017
1 parent 6a27a6a commit 70789cc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions publish-doc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

git describe --exact-match --tags $(git log -n1 --pretty='%h') >/dev/null 2>&1
if [[ $? != 0 ]]; then
echo "Should not publish tags from an untagged commit!"
exit 1
fi

cd $(git rev-parse --show-toplevel)
rm -rf target/doc/
rustup run nightly cargo doc --no-deps --features "backup blob chrono functions limits load_extension serde_json trace"
echo '<meta http-equiv=refresh content=0;url=rusqlite/index.html>' > target/doc/index.html
ghp-import target/doc
git push origin gh-pages:gh-pages

0 comments on commit 70789cc

Please sign in to comment.