Skip to content

Commit 6e60810

Browse files
committed
Use hackage token when uploading documentation
Hopefully this works around: haskell/cabal#10252
1 parent fdb49e6 commit 6e60810

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.ci/publish_sdist.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ set +u
1111
if [[ "$HACKAGE_RELEASE" == "yes" ]]; then
1212
# Release tag set, upload as release.
1313
cabal upload --publish --username=${HACKAGE_USERNAME} --password=${PASSWORD} ${SDIST}
14-
cabal upload --publish --documentation --username=${HACKAGE_USERNAME} --password=${PASSWORD} ${DDIST}
14+
cabal upload --publish --documentation --token=${HACKAGE_TOKEN} ${DDIST}
1515
elif [[ "$HACKAGE_RELEASE" == "no" ]]; then
1616
# Upload as release candidate
1717
cabal upload --username=${HACKAGE_USERNAME} --password=${PASSWORD} ${SDIST}
18-
cabal upload --documentation --username=${HACKAGE_USERNAME} --password=${PASSWORD} ${DDIST}
18+
cabal upload --documentation --token=${HACKAGE_TOKEN} ${DDIST}
1919
else
20-
echo "Unrecognized \$HACAKGE_RELEASE: $HACAKGE_RELEASE"
20+
echo "Unrecognized \$HACKAGE_RELEASE: $HACKAGE_RELEASE"
2121
exit 1;
2222
fi

0 commit comments

Comments
 (0)