-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 871 Bytes
/
release.yml
File metadata and controls
31 lines (29 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Release
on:
workflow_dispatch:
inputs:
otp:
name: 'RubyGems OTP Code'
required: true
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Mask OTP
run: |
OTP=$(jq -r '.inputs.otp' $GITHUB_EVENT_PATH)
echo "::add-mask::$OTP"
- run: gem update --system
- run: git config --global user.email github-action@users.noreply.github.com
- run: git config --global user.name GitHub Actions
- run: git config --global user.password ${{ github.token }}
- run: bundle install
- run: bundle exec rake release
env:
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
GEM_HOST_OTP_CODE: ${{ github.event.inputs.otp }}