Add documentation upload script

This commit is contained in:
Jonathan Daugherty 2023-12-29 16:48:03 -08:00
parent fc6f5eed07
commit 89a317a83b

10
scripts/upload-docs.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
set -e
dir=$(mktemp -d dist-docs.XXXXXX)
trap 'rm -r "$dir"' EXIT
# assumes cabal 2.4 or later
cabal v2-haddock --builddir="$dir" --haddock-for-hackage --enable-doc --haddock-options=--quickjump
cabal upload -d --publish $dir/*-docs.tar.gz