From 9cc5fa7c0ba98de7fe4e89eea93e33d31861565c Mon Sep 17 00:00:00 2001 From: Alexander Ross Date: Mon, 16 Nov 2020 16:32:06 +0100 Subject: [PATCH] Additional fix for gem push --- .github/workflows/gempush.yml | 33 ++++++++++++++++---------------- lib/standout/capybara/version.rb | 2 +- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/.github/workflows/gempush.yml b/.github/workflows/gempush.yml index 970f371..7101ddf 100644 --- a/.github/workflows/gempush.yml +++ b/.github/workflows/gempush.yml @@ -1,31 +1,32 @@ -name: Ruby Gem +name: Gem push on: release: types: [published] jobs: - build: - name: Build + Publish + github: + name: Build + Publish to GitHub runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2 - name: Set up Ruby 2.6 uses: actions/setup-ruby@v1 with: version: 2.6.x + - name: Publish to GitHub + uses: jstastny/publish-gem-to-github@master + with: + token: ${{ secrets.GITHUB_TOKEN }} + owner: standout - - name: Publish to GPR - run: | - mkdir -p $HOME/.gem - touch $HOME/.gem/credentials - chmod 0600 $HOME/.gem/credentials - printf -- "---\n:github: Bearer ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials - gem build *.gemspec - gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem - env: - GEM_HOST_API_KEY: ${{secrets.GITHUB_TOKEN}} - OWNER: standout - + rubygems: + name: Build + Publish to Rubygems + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - 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 diff --git a/lib/standout/capybara/version.rb b/lib/standout/capybara/version.rb index 2f7d1c4..62c448d 100644 --- a/lib/standout/capybara/version.rb +++ b/lib/standout/capybara/version.rb @@ -2,6 +2,6 @@ module Standout module Capybara - VERSION = '2.1.1' + VERSION = '2.1.2' end end