Skip to content

Commit 6b67002

Browse files
ci: Install the bundle before publishing to RubyGems (#148)
The publish job ran bundle exec rake release without ever installing gems, so it failed with Could not find gem 'faraday' for both 2.7.0 and 2.8.0. Also allow a manual run so the publish can be repeated for the tag master already points at.
1 parent 63f7c8d commit 6b67002

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎.github/workflows/release-please.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- master
7+
# Re-run the RubyGems publish for the tag master already points at.
8+
workflow_dispatch:
79

810
permissions:
911
contents: write
@@ -21,13 +23,14 @@ jobs:
2123

2224
rubygems-publish:
2325
needs: release-please
24-
if: ${{ needs.release-please.outputs.release_created == 'true' }}
26+
if: ${{ needs.release-please.outputs.release_created == 'true' || github.event_name == 'workflow_dispatch' }}
2527
runs-on: ubuntu-latest
2628
steps:
2729
- uses: actions/checkout@v4
2830
- uses: ruby/setup-ruby@v1
2931
with:
3032
ruby-version: "3.3"
33+
bundler-cache: true
3134
- uses: rubygems/release-gem@v1
3235
with:
3336
await-release: false

0 commit comments

Comments
 (0)