3.19.0 #52
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: Release to RubyGems | |
on: | |
release: | |
# `created` does not fire on draft releases. `published` fires | |
# when a draft release is published. having both reduces footguns. | |
types: [created] | |
jobs: | |
build: | |
name: Release to RubyGems | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Install Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2 | |
bundler-cache: true # runs 'bundle install' and caches | |
- name: Update system rubygems | |
run: gem update --system | |
# | |
- name: Install gems | |
run: | | |
gem install bundler | |
gem install typhoeus | |
gem install solid_assert | |
- name: Install Ruby Dependencies | |
run: bundle install --jobs 4 --retry 3 | |
- name: Run Integration Tests | |
env: | |
MUX_TOKEN_ID: ${{ secrets.MUX_TOKEN_ID }} | |
MUX_TOKEN_SECRET: ${{ secrets.MUX_TOKEN_SECRET }} | |
run: bash test.sh | |
# | |
- name: Build Gem | |
run: gem build -o mux_ruby.gem mux_ruby.gemspec | |
- name: Push Gem to RubyGems | |
env: | |
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }} | |
run: gem push mux_ruby.gem |