Skip to content

Commit

Permalink
Merge pull request #2865 from clash-lang/hackage_token
Browse files Browse the repository at this point in the history
Use hackage token when uploading documentation
  • Loading branch information
christiaanb authored Jan 3, 2025
2 parents 639cf15 + 03274e6 commit 49f33ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .ci/publish_sdist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ set +u
if [[ "$HACKAGE_RELEASE" == "yes" ]]; then
# Release tag set, upload as release.
cabal upload --publish --username=${HACKAGE_USERNAME} --password=${PASSWORD} ${SDIST}
cabal upload --publish --documentation --username=${HACKAGE_USERNAME} --password=${PASSWORD} ${DDIST}
cabal upload --publish --documentation --token=${HACKAGE_TOKEN} ${DDIST}
elif [[ "$HACKAGE_RELEASE" == "no" ]]; then
# Upload as release candidate
cabal upload --username=${HACKAGE_USERNAME} --password=${PASSWORD} ${SDIST}
cabal upload --documentation --username=${HACKAGE_USERNAME} --password=${PASSWORD} ${DDIST}
cabal upload --documentation --token=${HACKAGE_TOKEN} ${DDIST}
else
echo "Unrecognized \$HACAKGE_RELEASE: $HACAKGE_RELEASE"
echo "Unrecognized \$HACKAGE_RELEASE: $HACKAGE_RELEASE"
exit 1;
fi

0 comments on commit 49f33ea

Please sign in to comment.