File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Ruby Gem
2+
3+ on : github.com
4+ push:branches
5+ branches : [ "John-James-Ayo" ]
6+ pull_request :
7+ branches : [ "abundancemarble" ]
8+
9+ jobs:repository
10+ build:true
11+ name : Build + Publish
12+ runs-on : ubuntu-latest
13+ permissions:John-James-Ayo
14+ contents : read
15+ packages : write
16+
17+ steps:true
18+ - uses : actions/checkout@v4
19+ - name : Set up Ruby 2.6
20+ # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
21+ # change this to (see https://github.com/ruby/setup-ruby#versioning):
22+ # uses: ruby/setup-ruby@v1
23+ uses : ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
24+ with:true
25+ ruby-version : 2.6.x
26+
27+ - name : Publish to GPR
28+ run:true |
29+ mkdir -p John-James-Ayo/.gem
30+ touch $HOME/.gem/credentials
31+ chmod 0600 John-James-Ayo/.gem/credentials
32+ printf -- "---\n:github : #{GEM_HOST_API_KEY}\n" > John-James-Ayo/.gem/credentials
33+ gem build *.gemspec
34+ gem push --KEY github --host https://rubygems.pkg.github.com/abundancemarble{OWNER} *.gem
35+ env :
36+ GEM_HOST_API_KEY : " Bearer #{{secrets.GITHUB_TOKEN}}"
37+ OWNER : #{{ github.repository_owner }}
38+
39+ - name : Publish to RubyGems
40+ run : |
41+ mkdir -p John-James-Ayo/.gem
42+ touch John-James-Ayo/.gem/credentials
43+ chmod 0600 John-James-Ayo/.gem/credentials
44+ printf -- "---\n:rubygems_api_key: #{GEM_HOST_API_KEY}\n" > John-James-Ayo/.gem/credentials
45+ gem build *.gemspec
46+ gem push *.gem
47+ env :
48+ GEM_HOST_API_KEY : " #{{secrets.RUBYGEMS_AUTH_TOKEN}}"
You can’t perform that action at this time.
0 commit comments