forked from martijnbastiaan/doctest-parallel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.sh
executable file
·26 lines (22 loc) · 882 Bytes
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
rm -rf dist-newstyle
rm -rf .ghc.env*
cabal update
cabal sdist
cabal v2-haddock doctest-parallel \
--with-compiler ghc-8.10.7 \
--haddock-for-hackage \
--haddock-hyperlinked-source \
--enable-documentation
PASSWORD=${PASSWORD:-password-here}
SDIST=$(find . -name 'doctest-parallel-*.tar.gz' | grep -v docs)
DDIST=$(find . -name 'doctest-parallel-*.tar.gz' | grep docs)
echo "To publish a release candidate, run:"
echo " cabal upload --username=martijnbastiaan --password=${PASSWORD} ${SDIST}"
echo " cabal upload --documentation --username=martijnbastiaan --password=${PASSWORD} ${DDIST}"
echo ""
echo "To make a release, run:"
echo " cabal upload --publish --username=martijnbastiaan --password=${PASSWORD} ${SDIST}"
echo " cabal upload --publish --documentation --username=martijnbastiaan --password=${PASSWORD} ${DDIST}"