Skip to content

Commit

Permalink
fix: bump ruby version
Browse files Browse the repository at this point in the history
bumps to latest version of ruby 3.1.3
bump to latest release please github action
  • Loading branch information
invalidusrname committed Dec 11, 2022
1 parent f3192b8 commit 360d0a9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
38 changes: 20 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,30 @@ jobs:
env:
GEM_NAME: lock
steps:
- uses: GoogleCloudPlatform/release-please-action@v2
- uses: google-github-actions/release-please-action@v3
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: ruby
package-name: ${{ env.GEM_NAME }}
bump-minor-pre-major: true
package-name: "${{ env.GEM_NAME }}"
- uses: actions/checkout@v3
if: steps.release.outputs.release_created
- uses: ruby/setup-ruby@v1
- name: remove Gemfile.lock
if: "${{ steps.release.outputs.release_created }}"
run: |
rm Gemfile.lock
- name: install ruby
if: "${{ steps.release.outputs.release_created }}"
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
if: steps.release.outputs.release_created
- run: bundle
if: steps.release.outputs.release_created
- name: publish gem
if: steps.release.outputs.release_created
env:
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
- name: bundle
if: "${{ steps.release.outputs.release_created }}"
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
gem build *.gemspec
gem push *.gem
bundle config unset --local deployment
bundle
- name: publish gem
if: "${{ steps.release.outputs.release_created }}"
uses: dawidd6/action-publish-gem@v1
with:
api_key: "${{secrets.RUBYGEMS_API_KEY}}"
github_token: "${{secrets.GITHUB_TOKEN}}"
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.1
3.1.3

0 comments on commit 360d0a9

Please sign in to comment.