-
-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (35 loc) · 1 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# .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 }}