Skip to content

WIP

WIP #10

Workflow file for this run

name: Publish Ruby gem
#on: workflow_dispatch
on:
push:
branches:
- ivoanjo/prof-11827-ruby-trusted-publishing-v2
concurrency: "publish-ruby" # Only one publish job at a time
jobs:
publish-ruby:
name: Build and push gem to RubyGems.org
runs-on: ubuntu-24.04
env:
BUNDLE_GEMFILE: ruby/gems.rb
# environment: "publish-ruby" # see: https://github.com/datadog/libdatadog/settings/environments
permissions:
id-token: write # Required for trusted publishing, see https://github.com/rubygems/release-gem
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
sparse-checkout: ruby
- name: Set up Ruby
uses: ruby/setup-ruby@e34163cd15f4bb403dcd72d98e295997e6a55798 # v1.238.0
with:
bundler-cache: true
ruby-version: 'ruby'
- uses: ivoanjo/release-gem@7e454eb8312ada894086eac74c2c8622978c5436 # WIP
with:
working-directory: ruby