Skip to content

Commit

Permalink
CI: fix publish gem condition (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
ami-descope committed Mar 19, 2024
1 parent e21ec2f commit abe1744
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-gem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Publish Ruby Gem

on:
release:
types: [created]
types: [published]
branches: [main]

permissions:
contents: read
Expand Down Expand Up @@ -34,4 +35,3 @@ jobs:
gem push *.gem
env:
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_API_KEY}}"
if: ${{ steps.release.outputs.release_created }}

0 comments on commit abe1744

Please sign in to comment.