Once you have created your gem to publish it you have to follow a few steps:
gem build <gem name>.gemspec
gem publish <gem name>.<gem version number>.gem