Skip to content

Commit

Permalink
chore: bootstrap releases for 'xdr' gem
Browse files Browse the repository at this point in the history
  • Loading branch information
nebolsin committed Feb 26, 2024
1 parent bfecc82 commit 3ddf249
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 8 deletions.
21 changes: 21 additions & 0 deletions .github/release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"release-type": "ruby-yoshi",
"draft": true,
"prerelease": false,
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"include-component-in-tag": false,
"include-v-in-tag": true,
"skip-github-release": false,
"separate-pull-requests": false,
"tag-separator": "/",
"sequential-calls": false,
"packages": {
".": {
"package-name": "xdr",
"changelog-path": "CHANGELOG.md",
"version-file": "lib/xdr/version.rb"
}
},
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}
3 changes: 3 additions & 0 deletions .github/release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "3.0.3"
}
5 changes: 5 additions & 0 deletions .github/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
primaryBranch: main
handleGHRelease: true
manifest: true
manifestConfig: .github/release-please-config.json
manifestFile: .github/release-please-manifest.json
44 changes: 36 additions & 8 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,45 @@
name: release-please

on:
push:
branches: [ main ]
branches: [main]
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
release-please:
if: ${{ github.repository == 'astroband/ruby-xdr' }}
runs-on: ubuntu-latest
steps:
- id: release
uses: google-github-actions/release-please-action@v3
with:
release-type: ruby
bump-minor-pre-major: true
version-file: "lib/xdr/version.rb"
- uses: google-github-actions/release-please-action@v4
id: release
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
config-file: .github/release-please-config.json
manifest-file: .github/release-please-manifest.json
outputs:
release_created: ${{ steps.release.outputs.release_created }}
release_tag_name: ${{ steps.release.outputs.tag_name }}

push-gem:
needs: release-please
runs-on: ubuntu-latest
if: ${{ needs.release-please.outputs.release_created }}

permissions:
contents: write
id-token: write

steps:
- uses: actions/checkout@v4
with:
ref: ${{ needs.release-please.outputs.release_tag_name }}

- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ruby

- uses: rubygems/release-gem@v1

0 comments on commit 3ddf249

Please sign in to comment.