Skip to content

Commit

Permalink
ci: release workflow fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nebolsin committed Feb 26, 2024
1 parent af8fb06 commit 6f1c224
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/release-please-config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"release-type": "ruby-yoshi",
"release-type": "ruby",
"draft": true,
"prerelease": false,
"bump-minor-pre-major": true,
Expand Down
29 changes: 15 additions & 14 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,34 @@ jobs:
if: ${{ github.repository == 'astroband/ruby-xdr' }}
runs-on: ubuntu-latest
steps:
- 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
- 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
environment: release
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: 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: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ruby

- uses: rubygems/release-gem@v1
- uses: rubygems/release-gem@v1

0 comments on commit 6f1c224

Please sign in to comment.