mirror of
https://github.com/jtdaugherty/brick.git
synced 2024-08-17 03:40:23 +03:00
Add documentation upload script
This commit is contained in:
parent
fc6f5eed07
commit
89a317a83b
10
scripts/upload-docs.sh
Normal file
10
scripts/upload-docs.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user