File tree Expand file tree Collapse file tree
lib/berkeley_library/util Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 fail-fast : false
77 matrix :
88 os : [ ubuntu-latest, macos-latest ]
9- ruby : [ '2.7', '3.0 ', '3.1 ' ]
9+ ruby : [ '3.3 ', '3.4 ' ]
1010 runs-on : ${{ matrix.os }}
1111
1212 steps :
2424
2525 - name : Upload artifacts
2626 if : ${{ always() }}
27- uses : actions/upload-artifact@v3
27+ uses : actions/upload-artifact@v4
2828 with :
29- name : artifacts
29+ name : artifacts-${{ matrix.ruby }}-${{ matrix.os }}
3030 path : artifacts/**
Original file line number Diff line number Diff line change 1+ name : Ruby Gem
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ build :
9+ name : Build + Publish
10+ runs-on : ubuntu-latest
11+ permissions :
12+ contents : read
13+ packages : write
14+
15+ steps :
16+ - uses : actions/checkout@v3
17+
18+ - name : Set up Ruby
19+ uses : ruby/setup-ruby@v1
20+ with :
21+ ruby-version : ' 3.3'
22+ bundler-cache : true
23+
24+ - name : Publish to RubyGems
25+ run : |
26+ mkdir -p $HOME/.gem
27+ touch $HOME/.gem/credentials
28+ chmod 0600 $HOME/.gem/credentials
29+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
30+ gem build *.gemspec
31+ gem push *.gem
32+ env :
33+ GEM_HOST_API_KEY : " ${{secrets.RUBYGEMS_AUTH_TOKEN}}"
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ require 'berkeley_library/util/module_info'
88
99Gem ::Specification . new do |spec |
1010 spec . name = BerkeleyLibrary ::Util ::ModuleInfo ::NAME
11- spec . author = BerkeleyLibrary ::Util ::ModuleInfo ::AUTHOR
12- spec . email = BerkeleyLibrary ::Util ::ModuleInfo ::AUTHOR_EMAIL
11+ spec . author = BerkeleyLibrary ::Util ::ModuleInfo ::AUTHORS
12+ spec . email = BerkeleyLibrary ::Util ::ModuleInfo ::AUTHOR_EMAILS
1313 spec . summary = BerkeleyLibrary ::Util ::ModuleInfo ::SUMMARY
1414 spec . description = BerkeleyLibrary ::Util ::ModuleInfo ::DESCRIPTION
1515 spec . license = BerkeleyLibrary ::Util ::ModuleInfo ::LICENSE
Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ module BerkeleyLibrary
22 module Util
33 class ModuleInfo
44 NAME = 'berkeley_library-util' . freeze
5- AUTHOR = 'David Moles' . freeze
6- AUTHOR_EMAIL = 'dmoles@berkeley.edu' . freeze
5+ AUTHORS = [ 'David Moles' , 'maría a. matienzo' ] . freeze
6+ AUTHOR_EMAILS = [ 'dmoles@berkeley.edu' , 'matienzo@berkeley.edu' ] . freeze
77 SUMMARY = 'Miscellaneous Ruby utilities for the UC Berkeley Library' . freeze
88 DESCRIPTION = 'A collection of miscellaneous Ruby routines for the UC Berkeley Library.' . freeze
99 LICENSE = 'MIT' . freeze
10- VERSION = '0.1.9 ' . freeze
10+ VERSION = '0.2.0 ' . freeze
1111 HOMEPAGE = 'https://github.com/BerkeleyLibrary/util' . freeze
1212 end
1313 end
You can’t perform that action at this time.
0 commit comments