Skip to content

Commit

Permalink
Test sync versions
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosantoniodasilva committed May 3, 2024
1 parent 6263243 commit f41e357
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 25 deletions.
66 changes: 42 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: release
on:
push:
branches:
- main
- ca-sync-gem-versions

jobs:
release-please:
Expand All @@ -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
2 changes: 1 addition & 1 deletion judoscale-ruby/lib/judoscale/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Judoscale
VERSION = "1.6.0"
VERSION = "1.6.1.alpha"
end

0 comments on commit f41e357

Please sign in to comment.