-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
973f8e7
commit 71fcfa8
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Publish packages | ||
|
||
on: | ||
push: | ||
tags: | ||
- * | ||
|
||
jobs: | ||
rubygems: | ||
runs-on: ubuntu-latest | ||
|
||
environment: packages | ||
|
||
permissions: | ||
id-token: write | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: build/ruby | ||
|
||
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: bundle exec rake release:version[${{ github.ref_name }}] | ||
- name: Generate ruby | ||
run: bundle exec rake generate_ruby:all | ||
|
||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters