We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29b5dcd commit 33b9746Copy full SHA for 33b9746
1 file changed
.github/workflows/release-ruby.yml
@@ -41,10 +41,15 @@ jobs:
41
bundle install
42
python ../devops/build_sdks.py --github-token=${{ secrets.API_GITHUB_TOKEN }} --package-version=${{ github.event.inputs.packageVersion }}
43
gem build *.gemspec
44
+
45
+ mkdir -p $HOME/.gem
46
+ touch $HOME/.gem/credentials
47
+ chmod 0600 $HOME/.gem/credentials
48
+ printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
49
+ gem build *.gemspec
50
+ gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
51
shell: pwsh
52
working-directory: ruby
- - name: Publish gem
- uses: dawidd6/[email protected]
- with:
- api_key: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
- github_token: ${{secrets.GITHUB_TOKEN}}
53
+ env:
54
+ GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
55
+ OWNER: ${{ github.repository_owner }}
0 commit comments