Skip to content

Commit

Permalink
Add RubyGems push Github Action (#105)
Browse files Browse the repository at this point in the history
* Add RubyGems push Github Action

This will push on a commit to master. I may go back and add back a validation step to this workflow to ensure the version has changed.

* Add Matthew and move files into the .github folder

* Only push on release
  • Loading branch information
rickpeyton authored Jan 7, 2020
1 parent c51d92d commit c54acbf
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CODEOWNERS → .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# https://help.github.com/articles/about-codeowners/

* @jwsloan @rickpeyton
* @jwsloan @rickpeyton @matthewmcgarvey
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
28 changes: 28 additions & 0 deletions .github/workflows/gempush.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Ruby Gem

on:
release:
types: [published]

jobs:
build:
name: Build + Publish
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
version: 2.6.x

- name: Publish to RubyGems
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
gem build *.gemspec
gem push *.gem
env:
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
5 changes: 0 additions & 5 deletions .travis.yml

This file was deleted.

0 comments on commit c54acbf

Please sign in to comment.