From 6f1c224b5d1755dc52ef00773622a21f673b845c Mon Sep 17 00:00:00 2001 From: Sergey Nebolsin Date: Mon, 26 Feb 2024 04:36:58 +0300 Subject: [PATCH] ci: release workflow fixes --- .github/release-please-config.json | 2 +- .github/workflows/release-please.yml | 29 ++++++++++++++-------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/release-please-config.json b/.github/release-please-config.json index d9db315..45826f4 100644 --- a/.github/release-please-config.json +++ b/.github/release-please-config.json @@ -1,5 +1,5 @@ { - "release-type": "ruby-yoshi", + "release-type": "ruby", "draft": true, "prerelease": false, "bump-minor-pre-major": true, diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 386fb8c..d1a0066 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -13,12 +13,12 @@ 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 }} @@ -26,6 +26,7 @@ jobs: push-gem: needs: release-please runs-on: ubuntu-latest + environment: release if: ${{ needs.release-please.outputs.release_created }} permissions: @@ -33,13 +34,13 @@ jobs: 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