Skip to content

Commit

Permalink
Add docs upload script because I'll never remember how
Browse files Browse the repository at this point in the history
  • Loading branch information
axman6 committed Aug 28, 2023
1 parent aa3ab6b commit bb46c5e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions upload-docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
set -ex

dir=$(mktemp -d dist-docs.XXXXXX)
trap 'rm -r "$dir"' EXIT

# assumes cabal 2.4 or later
cabal haddock --builddir="$dir" --haddock-for-hackage --enable-documentation

cabal upload --documentation $@ $dir/*-docs.tar.gz

0 comments on commit bb46c5e

Please sign in to comment.