Skip to content

Commit 176a644

Browse files
committed
ci: Migrate from the defunct release-please app to release-please-action
The release-please GitHub App was turned down by Google on 2025-08-14 (googleapis/release-please#2569), so the .github/release-please.yml app config no longer does anything and no release PRs get opened. Replace it with a release-please workflow using googleapis/release-please-action@v4, which reads the existing release-please-config.json and .release-please-manifest.json unchanged. Because tags created with the workflow GITHUB_TOKEN cannot trigger the tag-based gem-push workflow, the gem publish steps run as a second job in the same workflow, gated on a release having been created.
1 parent 6eaf654 commit 176a644

2 files changed

Lines changed: 56 additions & 2 deletions

File tree

.github/release-please.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
name: release-please
8+
jobs:
9+
release-please:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
outputs:
15+
release_created: ${{ steps.release.outputs.release_created }}
16+
tag_name: ${{ steps.release.outputs.tag_name }}
17+
steps:
18+
- uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
19+
id: release
20+
21+
push-gem:
22+
needs: release-please
23+
if: ${{ needs.release-please.outputs.release_created == 'true' }}
24+
runs-on: ubuntu-latest
25+
permissions:
26+
contents: write
27+
id-token: write
28+
steps:
29+
- uses: rubygems/configure-rubygems-credentials@dc5a8d8553e6ee01fc26761a49e99e733d17954a # v2.1.0
30+
with:
31+
role-to-assume: rg_oidc_akr_d5dztzq4ywp3y7rd7vfp
32+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
33+
with:
34+
persist-credentials: false
35+
- name: Set remote URL
36+
run: |
37+
# Attribute commits to the last committer on HEAD
38+
git config --global user.email "$(git log -1 --pretty=format:'%ae')"
39+
git config --global user.name "$(git log -1 --pretty=format:'%an')"
40+
git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY"
41+
- name: Set up Ruby
42+
uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
43+
with:
44+
bundler-cache: true
45+
ruby-version: ruby
46+
- name: Release
47+
run: bundle exec rake release
48+
- name: Wait for release to propagate
49+
run: |
50+
gem install rubygems-await
51+
gem_tuple="$(ruby -rbundler/setup -rbundler -e '
52+
spec = Bundler.definition.specs.find {|s| s.name == ARGV[0] }
53+
raise "No spec for #{ARGV[0]}" unless spec
54+
print [spec.name, spec.version, spec.platform].join(":")
55+
' "jwt-eddsa")"
56+
gem await "${gem_tuple}"

0 commit comments

Comments
 (0)