-
Notifications
You must be signed in to change notification settings - Fork 47
41 lines (37 loc) · 1.09 KB
/
publisher.yml
File metadata and controls
41 lines (37 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
name: Publish to RubyGems
on:
push:
tags:
- v*
permissions:
id-token: write
contents: write
# see: https://guides.rubygems.org/trusted-publishing/adding-a-publisher/
jobs:
push:
name: Push gem to RubyGems.org
runs-on: ubuntu-latest
steps:
# Set up
- uses: actions/checkout@v6
with:
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: false
ruby-version: 3.2
- name: Install gem packages
run: |
gem install bundler
bundle install --jobs 4 --retry 3
# Release
# see: https://github.com/rubygems/release-gem/blob/ebe1ec66bd8d2c709ac29aa2b43438d450e7a0a6/action.yml
- uses: rubygems/release-gem@1c162a739e8b4cb21a676e97b087e8268d8fc40b
- name: Generate gem
run: gem build trino-client-ruby.gemspec && ls -l trino-client-ruby-*.gem
working-directory: ./trino-client-ruby
- name: Push to rubygems.org
run: gem push trino-client-ruby-*.gem
working-directory: ./trino-client-ruby