Skip to content

Commit

Permalink
Enable automated rubygems release (#1052)
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym-stripe authored May 2, 2022
1 parent e671382 commit 2eb5422
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
Expand All @@ -30,6 +31,7 @@ jobs:
path: '*.gem'

test:
name: Test (${{ matrix.ruby-version }})
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -47,7 +49,10 @@ jobs:

publish:
name: Publish
if: (((github.event_name == 'workflow_dispatch')) && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')) && endsWith(github.actor, '-stripe'))
if: >-
((github.event_name == 'workflow_dispatch') || (github.event_name == 'push')) &&
startsWith(github.ref, 'refs/tags/v') &&
endsWith(github.actor, '-stripe')
needs: [build, test]
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 2eb5422

Please sign in to comment.