Add tools/build-and-upload-api-docs.sh.

This commit is contained in:
John MacFarlane 2022-01-07 11:48:24 -08:00
parent ee1fdc17d9
commit 4a2a068a8b

View file

@ -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