mirror of
https://github.com/rust-embedded/embedded-hal.git
synced 2026-03-23 15:40:19 +00:00
21 lines
423 B
Bash
21 lines
423 B
Bash
set -euxo pipefail
|
|
|
|
main() {
|
|
cargo doc --target $TARGET
|
|
|
|
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/$TARGET/doc
|
|
|
|
set +x
|
|
git push -fq https://$GH_TOKEN@github.com/$TRAVIS_REPO_SLUG.git gh-pages && \
|
|
echo OK
|
|
}
|
|
|
|
if [ $TRAVIS_BRANCH = master ]; then
|
|
main
|
|
fi
|