Release a Plugin
Use the release task to publish your plugin to the Workarea gems server.
$ bin/rails release
This task expects to find your gems server credentials assigned to the environment variable
BUNDLE_GEMS __WEBLINC__ COM. If you aren't exporting this variable in your shell startup, include it on the command line.
$ BUNDLE_GEMS __WEBLINC__ COM='<var>username</var>:<var>password</var>' bin/rails release
Furthermore, the gems server (since it's a clone of the software used for RubyGems.org) expects to find a gem credentials file in your home directory. If you've pushed open source gems to RubyGems.org, the file may already exist on your machine.
$ cat $HOME/.gem/credentials --- :rubygems_api_key: 'foo'
The file serves no purpose for Workarea gems, but it must be present to publish a gem. If this file doesn't already exist on your machine, create it with the following commands:
$ printf -- "---\n:rubygems_api_key: 'missing'\n" > $HOME/.gem/credentials $ chmod 0600 $HOME/.gem/credentials
How'd We Do?
Was this article missing something?
Was it not quite what you were looking for?
Do you have suggestions on how we could improve this article or your experience in general?
If so, please take a moment to let us know!
Your invaluable feedback will help everyone better understand the platform!