Skip to content

Use OIDC for release #10

Use OIDC for release

Use OIDC for release #10

Workflow file for this run

# .github/workflows/release.yml
name: release
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v3
id: release
with:
release-type: ruby
package-name: bundler-compose
bump-minor-pre-major: true
version-file: "lib/bundler/compose/version.rb"
- uses: actions/checkout@v2
if: ${{ steps.release.outputs.release_created }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
if: ${{ steps.release.outputs.release_created }}
- uses: rubygems/configure-rubygems-credentials@main
with:
role-to-assume: ${{ secrets.RUBYGEMS_OIDC_ROLE }}
if: ${{ steps.release.outputs.release_created }}
- name: publish gem
run: |
gem build *.gemspec
gem push *.gem
if: ${{ steps.release.outputs.release_created }}