I think the ‘publish’ command for roles is called import
: ansible-galaxy role import <github_user> <github_repo>
.
Some documentation is here: Galaxy Developer Guide — Ansible Documentation (the role
part is still optional in the command line, though I’d always put it there for clarity).