Skip to content

Commit 504c900

Browse files
authored
Automate the release process (#20)
* Add automated release workflow for RubyGems trusted publishing * fix up release.yml learnings from https://github.com/aptible/aptible-auth-ruby/actions/runs/20579099709/job/59102682363 * bump version 1.0.0 -> 1.0.1
1 parent f1ca0e1 commit 504c900

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
on:
2+
release:
3+
types: [published]
4+
5+
jobs:
6+
push:
7+
name: Push gem to RubyGems.org
8+
runs-on: ubuntu-latest
9+
10+
permissions:
11+
id-token: write
12+
contents: write
13+
14+
steps:
15+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
16+
with:
17+
persist-credentials: false
18+
- name: Set up Ruby
19+
uses: ruby/setup-ruby@211ffaaa5f8dda97e9e8bca4e70d0fbaf2f8c41c
20+
with:
21+
bundler-cache: false
22+
ruby-version: "3.3"
23+
24+
- run: bundle install
25+
26+
- uses: rubygems/release-gem@1c162a739e8b4cb21a676e97b087e8268d8fc40b

lib/fridge/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Fridge
2-
VERSION = '1.0.0'.freeze
2+
VERSION = '1.0.1'.freeze
33
end

0 commit comments

Comments
 (0)