name: Publish gem on: workflow_dispatch: inputs: tag: description: Tag required: true jobs: build: name: Publish to RubyGems.org runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: ref: ${{ github.event.inputs.tag }} - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: '2.7.6' - name: Install dependencies run: | gem install bundler bundle install --jobs 4 --retry 3 - name: Publish gem uses: dawidd6/action-publish-gem@v1 with: api_key: ${{ secrets.RUBYGEMS_API_KEY }}