diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 86f1e34a..eeba4991 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: release on: push: branches: - - main + - ca-sync-gem-versions jobs: release-please: @@ -12,31 +12,49 @@ jobs: outputs: release_created: ${{ steps.release.outputs.release_created }} steps: - - name: Release - id: release - uses: google-github-actions/release-please-action@v3 - with: - release-type: ruby - package-name: release-please-action - bump-minor-pre-major: true - version-file: "judoscale-ruby/lib/judoscale/version.rb" - - publish: - name: Publish to Rubygems - needs: release-please - runs-on: ubuntu-latest - if: ${{ needs.release-please.outputs.release_created == 'true' }} + # - name: Release + # id: release + # uses: google-github-actions/release-please-action@v3 + # with: + # release-type: ruby + # package-name: release-please-action + # bump-minor-pre-major: true + # version-file: "judoscale-ruby/lib/judoscale/version.rb" - steps: - - name: Checkout code - uses: actions/checkout@v3 + - name: Sync versions - checkout code + # if: ${{ steps.release.outputs.release_created }} + uses: actions/checkout@v4 - - name: Setup Ruby + - name: Sync versions - setup Ruby + # if: ${{ steps.release.outputs.release_created }} uses: ruby/setup-ruby@v1 with: - ruby-version: 3.2.2 + ruby-version: 3.3 + + - name: Sync versions + # if: ${{ steps.release.outputs.release_created }} + run: | + bin/sync + git add . + git commit -m "Sync versions" + git push + + # publish: + # name: Publish to Rubygems + # needs: release-please + # runs-on: ubuntu-latest + # if: ${{ needs.release-please.outputs.release_created == 'true' }} + + # steps: + # - name: Checkout code + # uses: actions/checkout@v4 + + # - name: Setup Ruby + # uses: ruby/setup-ruby@v1 + # with: + # ruby-version: 3.3 - - name: Publish gems - env: - GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_AUTH_TOKEN }} - run: bin/release + # - name: Publish gems + # env: + # GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_AUTH_TOKEN }} + # run: bin/release diff --git a/judoscale-ruby/lib/judoscale/version.rb b/judoscale-ruby/lib/judoscale/version.rb index 3eb00263..d5faa771 100644 --- a/judoscale-ruby/lib/judoscale/version.rb +++ b/judoscale-ruby/lib/judoscale/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Judoscale - VERSION = "1.6.0" + VERSION = "1.6.1.alpha" end