Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI

on:
on:
push:
workflow_dispatch:

Expand Down Expand Up @@ -75,6 +75,9 @@ jobs:
gem-publish:
runs-on: ubuntu-latest
if: (github.event_name == 'push' && contains(github.ref, 'refs/tags/')) || github.event_name == 'workflow_dispatch'
permissions:
id-token: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -92,8 +95,10 @@ jobs:
run: |
bundle exec rake build

- name: Configure RubyGems credentials (OIDC trusted publishing)
# rubygems/configure-rubygems-credentials@v1.0.0
uses: rubygems/configure-rubygems-credentials@bc6dd217f8a4f919d6835fcfefd470ef821f5c44

- name: Publish to RubyGems
run: |
gem push pkg/*.gem --host https://rubygems.org/
env:
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
Loading