.github/workflows/ci.yml in onebox-1.9.25 vs .github/workflows/ci.yml in onebox-1.9.26
- old
+ new
@@ -3,10 +3,12 @@
on:
pull_request:
push:
branches:
- master
+ tags:
+ - v*
jobs:
build:
runs-on: ubuntu-latest
@@ -35,5 +37,18 @@
- name: Rubocop
run: bundle exec rubocop
- name: RSpec
run: bundle exec rspec
+
+ publish:
+ if: contains(github.ref, 'refs/tags/v')
+ needs: build
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Release Gem
+ uses: cadwallion/publish-rubygems-action@5dfdb61
+ env:
+ RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}