Skip to content

Commit 5924756

Browse files
committed
prep release, update build workflows
1 parent 4ba55cb commit 5924756

4 files changed

Lines changed: 41 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
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:
@@ -24,7 +24,7 @@ jobs:
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/**

.github/workflows/gem-push.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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}}"

berkeley_library-util.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ require 'berkeley_library/util/module_info'
88

99
Gem::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

lib/berkeley_library/util/module_info.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)