Fix publish upload not working after an error message
Merge branch 'hotfix/v1.0.1'