Skip to content

1.0.106

1.0.106 #4

Workflow file for this run

name: Ruby Release
on:
push:
branches: [ main ]
jobs:
validate:
name: Validate
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
strategy:
matrix:
ruby-version: [ "2.7", "3.0", "3.1", "3.3" ]
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- run: bundle install
build_and_release:
name: Build and Release
needs:
- validate
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.0
rubygems: 3.5.21
- run: bundle install
- name: Create tag from commit
uses: christophebedard/tag-version-commit@v1
id: tag_version
with:
token: ${{ secrets.GITHUB_TOKEN }}
version_regex: '([0-9]+\.[0-9]+\.[0-9]+)'
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.tag }}
name: Release ${{ steps.tag_version.outputs.tag }}
- name: Publish
uses: rubygems/release-gem@v1