Skip to content

Commit

Permalink
Switch to GH actions for gem release
Browse files Browse the repository at this point in the history
  • Loading branch information
josqu4red committed Jul 1, 2021
1 parent 519416c commit f416aa9
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 18 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Release
on:
push:
tags: [ v* ]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- run: |
install -D -m 600 <(echo -e "---\n:rubygems_api_key: ${RUBYGEMS_API_KEY}") $HOME/.gem/credentials
gem build *.gemspec
gem push *.gem
env:
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

11 changes: 5 additions & 6 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
rescue LoadError
end
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'

task :default => :spec
RSpec::Core::RakeTask.new(:spec)

task default: :spec

0 comments on commit f416aa9

Please sign in to comment.