Skip to content

Commit 922fd84

Browse files
committed
Refactor gem publishing step to use rubygems/release-gem action and updated API key handling
1 parent 1ee4183 commit 922fd84

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,7 @@ jobs:
111111
echo 'exists=false' >> "$GITHUB_OUTPUT"
112112
fi
113113
114-
- name: Publish to RubyGems
115-
if: steps.rubygems.outputs.exists != 'true'
116-
env:
117-
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
118-
run: |
119-
if [ -z "$GEM_HOST_API_KEY" ]; then
120-
echo 'Missing RUBYGEMS_API_KEY secret.'
121-
exit 1
122-
fi
123-
124-
gem push "cloudstack-cli-${{ steps.release.outputs.version }}.gem"
114+
- name: Publish gem to RubyGems
115+
uses: rubygems/release-gem@v1
116+
with:
117+
api-key: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}

0 commit comments

Comments
 (0)