fix the artifacts signing condition
use a closure to get the user/password for publishing, to avoid error at evaluation time