Skip to content

fix: fix release-please configs #38

fix: fix release-please configs

fix: fix release-please configs #38

Workflow file for this run

name: release
on:
push:
branches:
- master
permissions:
contents: write
pull-requests: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
if: ${{ steps.release.outputs.release_created }}
- name: Build
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
gem build *.gemspec
if: ${{ steps.release.outputs.release_created }}
- name: Publish
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 push *.gem
if: ${{ steps.release.outputs.release_created }}
env:
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}