Skip to content

Commit

Permalink
Add release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Taucher2003 committed Aug 22, 2024
1 parent 0c4e937 commit 2a1e7b5
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Push Gem

on:
push:
tags:
- '*'

jobs:
rubygems:
runs-on: ubuntu-latest

environment: rubygems

permissions:
id-token: write

steps:
# Set up
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.2'
- name: Install gems
run: bundle install
- name: Set version
run: sed -i "s/VERSION = \"0.0.0\"/VERSION = \"${{ github.ref_name }}\"/" lib/code0/identities/version.rb && bundle

# Release
- uses: rubygems/[email protected]
- name: Publish gem
run: bundle exec rake release:rubygem_push
- name: Wait for release
run: gem exec rubygems-await pkg/*.gem
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
code0-identities (0.1.0)
code0-identities (0.0.0)
httparty (~> 0.22)

GEM
Expand Down
2 changes: 1 addition & 1 deletion lib/code0/identities/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Code0
module Identities
VERSION = "0.1.0"
VERSION = "0.0.0"
end
end

0 comments on commit 2a1e7b5

Please sign in to comment.