Fix artifact deployment logic