name: Publish Gem

on:
  push:
    tags: v*

jobs:
  call-workflow:
    uses: zendesk/gw/.github/workflows/ruby-gem-publication.yml@main
    secrets:
      RUBY_GEMS_API_KEY: ${{ secrets.RUBY_GEMS_API_KEY }}
      RUBY_GEMS_TOTP_DEVICE: ${{ secrets.RUBY_GEMS_TOTP_DEVICE }}

Add workflow for pushing to Ruby Gems
Add workflow for pushing to Ruby Gems

Creates a workflow for publishing to the public Zendesk RubyGems
account.

Uses the workflow from the public `gw` gem. `gw`'s (ruby-gem-publication readme](https://github.com/zendesk/gw/blob/main/ruby-gem-publication/README.md)
