diff --git a/ci/after_success.sh b/ci/after_success.sh
index 7a809e0ea30ec3dda84d86dee214d57dcccd41ed..8ddfe6cdf5b679f1b51bd6fb90298fbeb56fae05 100644
--- a/ci/after_success.sh
+++ b/ci/after_success.sh
@@ -1,14 +1,18 @@
 set -euxo pipefail
 
 main() {
-    cargo doc
+    if [ $TARGET = x86_64-unknown-linux-gnu ]; then
+        return
+    fi
+
+    xargo 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/doc
+    ./ghp-import/ghp_import.py target/$TARGET/doc
 
     set +x
     git push -fq https://$GH_TOKEN@github.com/$TRAVIS_REPO_SLUG.git gh-pages && \