aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2022-01-17 09:55:04 -0800
committerJohn MacFarlane <[email protected]>2022-01-17 21:03:25 -0800
commit5811baf80f8ca4f28282f491299639a552d57e76 (patch)
tree5068db72f85dcd4bfe12923e7d3b8fe3b11091a5
parent7f50324ff940b6fa996c59726d46ec108d5e23bd (diff)
Update build-and-upload-api-docs.sh.
Using the template at https://hackage.haskell.org/upload It still fails because of a missing doc-index.json for Glob?
-rw-r--r--tools/build-and-upload-api-docs.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/build-and-upload-api-docs.sh b/tools/build-and-upload-api-docs.sh
index ed18c5f88..41a1c2fb2 100644
--- a/tools/build-and-upload-api-docs.sh
+++ b/tools/build-and-upload-api-docs.sh
@@ -1,8 +1,8 @@
#!/bin/sh
set -e
-dir=haddocks-dir
+dir=$(mktemp -d dist-docs.XXXXXX)
+trap 'rm -r "$dir"' EXIT
-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
+cabal v2-haddock --builddir="$dir" --haddock-for-hackage --enable-doc
+cabal upload -d --publish $dir/*-docs.tar.gz