Skip to content

Commit f66a31b

Browse files
committed
chore: add GitHub action to publish the gem to RubyGems
It runs on any git tag push with name starting with 'v' (so any tag like v1.10.0 will trigger)
1 parent 1ba22c4 commit f66a31b

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
tags:
6+
- v*
7+
8+
---
9+
10+
- name: Publish gem on tag push
11+
uses: dawidd6/action-publish-gem@v1.2.0
12+
with:
13+
# Optional, will publish to RubyGems if specified
14+
api_key: ${{secrets.RUBYGEMS_API_KEY}}
15+
# Optional, will publish to GitHub Packages if specified
16+
github_token: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)