Skip to content

Commit

Permalink
new workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
szorfein committed Oct 3, 2024
1 parent c93e422 commit 0f7a30f
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 16 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/gem-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Ruby Gem

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
name: Build + Publish
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v4
- name: Set up Ruby 2.6
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
with:
ruby-version: 2.6.10

- name: Publish to GPR
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
gem build *.gemspec
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
env:
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
OWNER: ${{ github.repository_owner }}

# - name: Publish to RubyGems
# run: |
# mkdir -p $HOME/.gem
# touch $HOME/.gem/credentials
# chmod 0600 $HOME/.gem/credentials
# printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
# gem build *.gemspec
# gem push *.gem
# env:
# GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
## 0.7.3, release 2024-10
Add a Workflow to build gem on Github

### Fix
- Voidlinux, remove 'base-container-full' instead of 'base-voidstrap'.
- Gentoo, use sys-kernel/installkernel, sys-kernel/installkernel-systemd was removed.
- Gentoo, use and configure 'sys-kernel/installkernel', sys-kernel/installkernel-systemd was removed from portage.

## 0.7.0, release 2023-12
* Add support for ssd disk `/dev/nvme*` #5
Expand Down
20 changes: 10 additions & 10 deletions certs/szorfein.pem
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-----BEGIN CERTIFICATE-----
MIIEhTCCAu2gAwIBAgIBATANBgkqhkiG9w0BAQsFADBEMREwDwYDVQQDDAhzem9y
ZmVpbjEaMBgGCgmSJomT8ixkARkWCnByb3Rvbm1haWwxEzARBgoJkiaJk/IsZAEZ
FgNjb20wHhcNMjMxMDIzMTcyMTA4WhcNMjQxMDIyMTcyMTA4WjBEMREwDwYDVQQD
FgNjb20wHhcNMjQwOTEwMTI0NDE0WhcNMjUwOTEwMTI0NDE0WjBEMREwDwYDVQQD
DAhzem9yZmVpbjEaMBgGCgmSJomT8ixkARkWCnByb3Rvbm1haWwxEzARBgoJkiaJ
k/IsZAEZFgNjb20wggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQCqe1yx
EG2oM25jeHp08A8zkaDNmbI3MujjrRM/WPEYZX2dVwOxkIS20hQVuxcAsBBA4W/W
Expand All @@ -15,13 +15,13 @@ siuX6RkNIelhtb0En7f3bizgPqlO0qPQV+wPi9TSBxdVG12C0OmjCQYMQD0CAwEA
AaOBgTB/MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBTlKnQ3qMUF
zydvZaKwdP+dnj2uajAiBgNVHREEGzAZgRdzem9yZmVpbkBwcm90b25tYWlsLmNv
bTAiBgNVHRIEGzAZgRdzem9yZmVpbkBwcm90b25tYWlsLmNvbTANBgkqhkiG9w0B
AQsFAAOCAYEAFjnBWWfaMeA8hP0Q76WmBCFckGN5I42X5RQkVYRRXIaeXIS1td/t
O1v1iQLo6ABfASMi6We7T16+ita68xwNOmSkMNHHXBr/fdGbHExxFSX7BXNRbwla
SS6Vy0bXKMDJbXcvkrmIolpYhEFm1218FCRCT6ogM1oWAJAfhfF9pMeRxrxjQYFn
ko8XgjIHxb83miOILgdq/lgJ4gfD7PsGfJtLCLiCKCcxIb4TtmKAzRwCDVpb6wqM
5xJZffAmHI7v8lVer53sPzm3INPu5xFZyfZ/SXYXPKKwln0efH63K5vuXYwEN7NI
SBSRTN03Hb65t86m6/r084SrNnLntQjCSqApzFBt1QwJ5cmiVilODN4V7y2hZpyK
hSk3b2VOotDPiWIm1p/IPXQDfm5x67Z5fJQPAlBTsse4jKyVyW1lZLmERSBuRZ2O
urXgRIzALxd/xazPCnoLSXPzfJSI6Y77S1EBvhPd9RaSO8IyH9RhPDP9mnTvW2Kl
NAUnoL+txK5a
AQsFAAOCAYEAovYzxoacedBx+srZwqOHUAysFnr19mFMgSPysOfKboDRweIdbmFh
L4QK2eKLIi/HAP6O//iTFSgloaTZowUPwD6FdAoCFflpqFP0CHcyjEo/0Ajs5xLS
Xavu6cMsz1RLVIFtaxhY9Rnr3M7jEJRFqTann6NEZQmVvGBe6R6BmthWaEcW1X1p
0Adc9DrtUB8vhrr/H2Aj5nuJSQZjTOLFOYSwK6MD9u3r4R+z9J5h7ZitxOB/WIYX
BNlFWNiTX5C77iu7tT+qVbsIJJy8E2Cx9eTqTURNcGN02n+JTkThVt0JuxEOS039
ECOx1+qWjmwrDOnqmOpEHZTDgdG2mkQ11hkroqRAo9BwsSk6YcBi3KvcB1KGB4m1
KxxDIIJja4q16N7/E1HjUXAFU44GRbOllGwaC8DNqRTdgQyoPNqbvRGqwIl49B6/
QJXHBrUUhtRDcZgyQmW0I0JtXCA3OkUCi/T2Ebbd8NDzIlnv2otiYaGR4YloFpVd
ZegX+82gyQCr
-----END CERTIFICATE-----
10 changes: 6 additions & 4 deletions getch.gemspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
require File.dirname(__FILE__) + '/lib/getch/version'
# frozen_string_literal: true

require_relative 'lib/getch/version'

Gem::Specification.new do |s|
s.name = 'getch'
Expand All @@ -15,7 +17,7 @@ Gem::Specification.new do |s|
'wiki_uri' => 'https://github.com/szorfein/getch'
}
s.license = 'MIT'
s.required_ruby_version = '>= 2.5.0'
s.required_ruby_version = '>= 2.6'

s.files = Dir.glob('{assets,lib}/**/*', File::FNM_DOTMATCH).reject { |f| File.directory?(f) }

Expand All @@ -26,6 +28,6 @@ Gem::Specification.new do |s|
s.executables << 'getch'
s.require_paths = ['lib']

s.cert_chain = ['certs/szorfein.pem']
s.signing_key = File.expand_path('~/.ssh/gem-private_key.pem')
#s.cert_chain = ['certs/szorfein.pem']
#s.signing_key = File.expand_path('~/.ssh/gem-private_key.pem')
end
2 changes: 1 addition & 1 deletion lib/getch/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Getch
VERSION = '0.7.2'
VERSION = '0.7.3'
end

0 comments on commit 0f7a30f

Please sign in to comment.