Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Commit

Permalink
Update gem push to support OTP
Browse files Browse the repository at this point in the history
  • Loading branch information
logachev authored Aug 24, 2020
1 parent aa48379 commit bafa234
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/gem-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Ruby Gem

on:
workflow_dispatch:
inputs:
otp:
description: 'One Time Password'
required: true

jobs:
build:
Expand All @@ -21,6 +25,7 @@ jobs:
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${RUBYGEMS_API_KEY}\n" > $HOME/.gem/credentials
gem signin --otp ${{ github.event.inputs.otp }}
gem build *.gemspec
gem push *.gem
env:
Expand Down

0 comments on commit bafa234

Please sign in to comment.