Add tools/build-and-upload-api-docs.sh.
This commit is contained in:
parent
ee1fdc17d9
commit
4a2a068a8b
1 changed files with 8 additions and 0 deletions
8
tools/build-and-upload-api-docs.sh
Normal file
8
tools/build-and-upload-api-docs.sh
Normal 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
|
Loading…
Reference in a new issue