Commit 84722b5 1 parent 088fc87 commit 84722b5 Copy full SHA for 84722b5
File tree 1 file changed +11
-13
lines changed
1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change 63
63
path : pkg/*.gem
64
64
65
65
publish :
66
- # if: startsWith(github.ref, 'refs/tags/v')
66
+ if : startsWith(github.ref, 'refs/tags/v')
67
67
needs : ['build-ruby', 'build-native']
68
68
strategy :
69
69
matrix :
@@ -74,15 +74,13 @@ jobs:
74
74
with :
75
75
name : " ${{ matrix.platform }}-gem"
76
76
path : pkg
77
- - name : List files
78
- run : ls -l pkg
79
- # - name: Publish to RubyGems
80
- # shell: bash
81
- # run: |
82
- # mkdir -p $HOME/.gem
83
- # touch $HOME/.gem/credentials
84
- # chmod 0600 $HOME/.gem/credentials
85
- # printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
86
- # gem push pkg/*.gem
87
- # env:
88
- # GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_API_KEY}}"
77
+ - name : Publish to RubyGems
78
+ shell : bash
79
+ run : |
80
+ mkdir -p $HOME/.gem
81
+ touch $HOME/.gem/credentials
82
+ chmod 0600 $HOME/.gem/credentials
83
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
84
+ gem push pkg/*.gem
85
+ env :
86
+ GEM_HOST_API_KEY : " ${{secrets.RUBYGEMS_API_KEY}}"
You can’t perform that action at this time.
0 commit comments