Skip to content

Commit

Permalink
Add documentation upload script
Browse files Browse the repository at this point in the history
  • Loading branch information
jtdaugherty committed Dec 30, 2023
1 parent fc6f5ee commit 89a317a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/upload-docs.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 89a317a

Please sign in to comment.