Fix publishing of canary builds.
Merge pull request #9451 from rwjblue/enable-canary-publishing

Fix publishing of canary builds.