File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 23
23
- name : Install onetimepass
24
24
run : pip install onetimepass==1.0.1
25
25
26
+ - name : Configure gem credentials
27
+ run : |
28
+ echo "RUBYGEMS_MFA_KEY=${{ secrets.RUBYGEMS_MFA_KEY }}" >> $GITHUB_ENV
29
+
26
30
- name : Build newrelic_rpm gem
27
31
run : gem build newrelic_rpm.gemspec
28
32
@@ -45,19 +49,13 @@ jobs:
45
49
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
46
50
47
51
- name : Obtain OTP to publish newrelic_rpm to rubygems.org
48
- env :
49
- RUBYGEMS_MFA_KEY : ${{ secrets.RUBYGEMS_MFA_KEY }}
50
- run : echo "RUBYGEMS_OTP=$(python ./.github/workflows/scripts/rubygems-authenticate.py $RUBYGEMS_MFA_KEY)" >> $GITHUB_ENV
52
+ run : echo "RUBYGEMS_OTP=$(python ./.github/workflows/scripts/rubygems-authenticate.py RUBYGEMS_MFA_KEY)" >> $GITHUB_ENV
51
53
52
54
- name : Publish newrelic_rpm to rubygems.org
53
- env :
54
- RUBYGEMS_OTP : ${{ env.RUBYGEMS_OTP }}
55
55
run : ruby ./.github/workflows/scripts/rubygems-publish.rb newrelic_rpm
56
56
57
57
- name : Obtain OTP to publish newrelic-infinite_tracing to rubygems.org
58
- env :
59
- RUBYGEMS_MFA_KEY : ${{ secrets.RUBYGEMS_MFA_KEY }}
60
- run : echo "RUBYGEMS_OTP=$(python ./.github/workflows/scripts/rubygems-authenticate.py $RUBYGEMS_MFA_KEY)" >> $GITHUB_ENV
58
+ run : echo "RUBYGEMS_OTP=$(python ./.github/workflows/scripts/rubygems-authenticate.py RUBYGEMS_MFA_KEY)" >> $GITHUB_ENV
61
59
62
60
- name : Publish newrelic-infinite_tracing to rubygems.org
63
61
run : ruby ./.github/workflows/scripts/rubygems-publish.rb infinite_tracing/newrelic-infinite_tracing
You can’t perform that action at this time.
0 commit comments