Publish #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: Tag | |
required: true | |
jobs: | |
publish: | |
name: Publish to RubyGems.org and GitHub Packages | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.inputs.tag }} | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.0.6' | |
- name: Install gems | |
env: | |
RAILS_VERSION: '7.0.8' | |
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 }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} |