-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
release.sh: Include haddocks upload for dhall-nix #1852
Conversation
Note that this is currently untested and my bash skills are rather underdeveloped… I just got some exercise manually uploading the docs for |
Side question: Why is |
@sjakobi: There were two reasons, one of which is no longer applicable:
|
scripts/release.sh
Outdated
@@ -15,6 +15,11 @@ function release { | |||
cabal v1-configure --disable-tests --disable-benchmarks | |||
cabal v1-sdist | |||
cabal upload --publish "dist/${NAME}-${VERSION}.tar.gz" | |||
if [ "${NAME}" = "dhall-nix" ] | |||
then | |||
cabal v2-haddock --builddir=docs --haddock-for-hackage --enable-documentation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does cabal v1-haddock
work for this purpose? The reason I ask is that the cabal v1-*
commands work with Cabal's Nix support, which I use on the machine I use to release the packages. If we use the cabal v2-*
commands then they need to be run inside of a nix-shell
…as suggested by @Gabriel439. Inspired by https://github.com/ekmett/lens/blob/33121ae0805ad0f52714a7eeb92ca046d435bb94/scripts/hackage-docs.sh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! 🙂
I hope it will work… You'll find out, @Gabriel439! ;) |
@sjakobi: Yeah, if anything goes wrong I will submit a follow-up pull request to fix things |
@sjakobi: I can confirm that it worked 🙂 |
Context: #1756