Skip to content

Commit

Permalink
Merge pull request #124 from avadev/jwenger/ci-cd
Browse files Browse the repository at this point in the history
Jwenger/ci cd
  • Loading branch information
svc-developer authored Jun 2, 2022
2 parents 81aec7c + 838d050 commit c7e1586
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 19 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/gem-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Ruby Gem

on:
release:
types: [published]

jobs:
build:
name: Build + Publish
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v2
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-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 avatax.gemspec
gem push *.gem
env:
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

0 comments on commit c7e1586

Please sign in to comment.