Skip to content

Commit c48176d

Browse files
Merge pull request #3119 from newrelic/dev
Release 9.18.0
2 parents 03bf77e + 061abcc commit c48176d

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ jobs:
2323
- name: Install onetimepass
2424
run: pip install onetimepass==1.0.1
2525

26+
- name: Configure gem credentials
27+
run: |
28+
echo "RUBYGEMS_MFA_KEY=${{ secrets.RUBYGEMS_MFA_KEY }}" >> $GITHUB_ENV
29+
2630
- name: Build newrelic_rpm gem
2731
run: gem build newrelic_rpm.gemspec
2832

@@ -45,19 +49,13 @@ jobs:
4549
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4650

4751
- 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
5153

5254
- name: Publish newrelic_rpm to rubygems.org
53-
env:
54-
RUBYGEMS_OTP: ${{ env.RUBYGEMS_OTP }}
5555
run: ruby ./.github/workflows/scripts/rubygems-publish.rb newrelic_rpm
5656

5757
- 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
6159

6260
- name: Publish newrelic-infinite_tracing to rubygems.org
6361
run: ruby ./.github/workflows/scripts/rubygems-publish.rb infinite_tracing/newrelic-infinite_tracing

0 commit comments

Comments
 (0)