mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-29 21:40:27 +00:00
23 lines
462 B
Bash
23 lines
462 B
Bash
set -euxo pipefail
|
|
|
|
main() {
|
|
if [ $TARGET != x86_64-unknown-linux-gnu ] || [ $TRAVIS_BRANCH != master ]; then
|
|
return
|
|
fi
|
|
|
|
cargo doc
|
|
|
|
mkdir ghp-import
|
|
|
|
curl -Ls https://github.com/davisp/ghp-import/archive/master.tar.gz | \
|
|
tar --strip-components 1 -C ghp-import -xz
|
|
|
|
./ghp-import/ghp_import.py target/doc
|
|
|
|
set +x
|
|
git push -fq https://$GH_TOKEN@github.com/$TRAVIS_REPO_SLUG.git gh-pages && \
|
|
echo OK
|
|
}
|
|
|
|
main
|