aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/build-and-upload-api-docs.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/build-and-upload-api-docs.sh b/tools/build-and-upload-api-docs.sh
new file mode 100644
index 000000000..ed18c5f88
--- /dev/null
+++ b/tools/build-and-upload-api-docs.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+
+dir=haddocks-dir
+
+cabal v2-haddock --builddir="$dir" --haddock-for-hackage --haddock-hyperlinked-source
+# Starting with cabal 2.0, `--publish` is needed for uploading to non-candidate releases
+cabal upload -d $dir/*-docs.tar.gz