mirror of
https://github.com/jtdaugherty/brick.git
synced 2024-11-22 14:10:03 +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