| Dmytro Shteflyuk | 7ee3e5f | 2026-04-08 18:12:37 -0400 | [diff] [blame^] | 1 | # |
| 2 | # Licensed to the Apache Software Foundation (ASF) under one |
| 3 | # or more contributor license agreements. See the NOTICE file |
| 4 | # distributed with this work for additional information |
| 5 | # regarding copyright ownership. The ASF licenses this file |
| 6 | # to you under the Apache License, Version 2.0 (the |
| 7 | # "License"); you may not use this file except in compliance |
| 8 | # with the License. You may obtain a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, |
| 13 | # software distributed under the License is distributed on an |
| 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | # KIND, either express or implied. See the License for the |
| 16 | # specific language governing permissions and limitations |
| 17 | # under the License. |
| 18 | # |
| 19 | |
| 20 | name: Release Ruby Gem |
| 21 | |
| 22 | on: |
| 23 | release: |
| 24 | types: [published] |
| 25 | workflow_dispatch: |
| 26 | |
| 27 | jobs: |
| 28 | publish: |
| 29 | runs-on: ubuntu-latest |
| 30 | |
| 31 | permissions: |
| 32 | contents: write |
| 33 | id-token: write |
| 34 | |
| 35 | environment: release |
| 36 | |
| 37 | steps: |
| 38 | # Set up |
| 39 | - uses: actions/checkout@v6 |
| 40 | with: |
| 41 | persist-credentials: false |
| 42 | - name: Set up Ruby |
| 43 | uses: ruby/setup-ruby@v1 |
| 44 | with: |
| 45 | bundler-cache: true |
| 46 | ruby-version: "4.0" |
| 47 | working-directory: lib/rb |
| 48 | |
| 49 | # Release |
| 50 | - uses: rubygems/release-gem@v1 |
| 51 | with: |
| 52 | working-directory: lib/rb |