[build][fix] Sign only if uploadArchives task is in the graph