diff options
| author | John MacFarlane <[email protected]> | 2022-01-07 11:48:24 -0800 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-01-07 11:50:02 -0800 |
| commit | 4a2a068a8b6cadd1e77f77e2a90f25f569d83a10 (patch) | |
| tree | 49d87e15032bfba8aafd42074a5847fc97154566 /tools | |
| parent | ee1fdc17d9e10d6ad3c45a72b4febb7a99cc04c9 (diff) | |
Add tools/build-and-upload-api-docs.sh.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/build-and-upload-api-docs.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/build-and-upload-api-docs.sh b/tools/build-and-upload-api-docs.sh new file mode 100644 index 000000000..ed18c5f88 --- /dev/null +++ b/tools/build-and-upload-api-docs.sh @@ -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 |
