Added onlyIf for uploadArchives.