-
Notifications
You must be signed in to change notification settings - Fork 13
42 lines (40 loc) · 1.21 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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