Skip to content

Commit 21b973f

Browse files
committed
ci : Add github actions workflow to publish gem
1 parent 5094125 commit 21b973f

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/publish-gem.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish Gem
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Release Gem
15+
if: contains(github.ref, 'refs/tags/v')
16+
uses: cadwallion/publish-rubygems-action@master
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
20+
RELEASE_COMMAND: rake release

Rakefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require 'bundler/gem_tasks'

0 commit comments

Comments
 (0)