only sign if publishing is possible
Merge pull request #5 from maiflai/master

only sign if publishing is possible