Skip to content

Commit

Permalink
Use github secrets for inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Menden committed May 30, 2024
1 parent 1ac66a9 commit 3331f4b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ on:
- major
- minor
- patch
secrets:
rubygems_api_key:
description: API Key
required: true
description: API Key
required: true
rubygems_otp:
description: OTP Code
required: true
Expand Down Expand Up @@ -49,11 +50,11 @@ jobs:
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
env:
GEM_HOST_API_KEY: "${{ github.event.inputs.rubygems_api_key }}"
GEM_HOST_API_KEY: "${{ github.event.secrets.rubygems_api_key }}"
- name: Publish to RubyGems
run: rake publish
env:
GEM_HOST_OTP_CODE: ${{ github.event.inputs.rubygems_otp }}
GEM_HOST_OTP_CODE: ${{ github.event.secrets.rubygems_otp }}
- name: Create a Release
uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit 3331f4b

Please sign in to comment.