We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c48176d + cbc7a46 commit 4a39b30Copy full SHA for 4a39b30
.github/workflows/release.yml
@@ -25,6 +25,7 @@ jobs:
25
26
- name: Configure gem credentials
27
run: |
28
+ echo "GEM_HOST_API_KEY=${{ secrets.RUBYGEMS_API_KEY }}" >> $GITHUB_ENV
29
echo "RUBYGEMS_MFA_KEY=${{ secrets.RUBYGEMS_MFA_KEY }}" >> $GITHUB_ENV
30
31
- name: Build newrelic_rpm gem
.github/workflows/scripts/rubygems-publish.rb
@@ -2,6 +2,9 @@
2
gem_name = ARGV[0]
3
raise "gem name sans version must be supplied" if gem_name.to_s == ""
4
5
+api_key = ENV["GEM_HOST_API_KEY"]
6
+raise "GEM_HOST_API_KEY must be set" if api_key.to_s == ""
7
+
8
version = ENV["VERSION"]
9
raise "VERSION environment must be set" if version.to_s == ""
10
0 commit comments