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 : Publish
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ permissions :
9+ contents : write
10+ packages : write
11+
12+ jobs :
13+ github :
14+ name : GitHub
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v2
19+ - name : Install
20+ uses : ruby/setup-ruby@v1
21+ with :
22+ ruby-version : ruby-3
23+ bundler-cache : true
24+ - name : Publish to GitHub
25+ env :
26+ GEM_HOST_API_KEY : " Bearer ${{secrets.GITHUB_TOKEN}}"
27+ RUBYGEMS_HOST : https://rubygems.pkg.github.com/${{github.repository_owner}}
28+ run : bin/release
29+ rubygems :
30+ name : RubyGems
31+ runs-on : ubuntu-latest
32+ steps :
33+ - name : Checkout
34+ uses : actions/checkout@v2
35+ - name : Install
36+ uses : ruby/setup-ruby@v1
37+ with :
38+ ruby-version : ruby-3
39+ bundler-cache : true
40+ - name : Publish to RubyGems
41+ env :
42+ GEM_HOST_API_KEY : " ${{secrets.RUBYGEMS_TOKEN}}"
43+ run : bin/release
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Gem::Specification.new do |spec|
66 spec . name = "handlebars-engine"
77 spec . version = Handlebars ::Engine ::VERSION
88 spec . authors = [ "Zach Gianos" ]
9- spec . email = [ "zach.gianos@gmail.com" ]
9+ spec . email = [ "zach.gianos+git @gmail.com" ]
1010
1111 spec . summary = "A simple interface to Handlebars.js for Ruby."
1212 spec . description = <<-DESCRIPTION
@@ -18,6 +18,7 @@ Gem::Specification.new do |spec|
1818 spec . required_ruby_version = ">= 2.6.0"
1919
2020 spec . metadata [ "changelog_uri" ] = "#{ spec . homepage } /CHANGELOG.md"
21+ spec . metadata [ "github_repo" ] = spec . homepage
2122 spec . metadata [ "homepage_uri" ] = spec . homepage
2223 spec . metadata [ "rubygems_mfa_required" ] = "true"
2324 spec . metadata [ "source_code_uri" ] = spec . homepage
You can’t perform that action at this time.
0 commit comments