Skip to content

Publish Gem

Publish Gem #2

Workflow file for this run

name: Publish Gem
on:
workflow_dispatch:
inputs:
version:
description: "Version"
required: true
type: string
jobs:
test:
uses: ./.github/workflows/ci.yml

Check failure on line 12 in .github/workflows/publish_gem.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish_gem.yml

Invalid workflow file

error parsing called workflow ".github/workflows/publish_gem.yml" -> "./.github/workflows/ci.yml" (source branch with sha:0d69d1bb2d002467211a8da511f8caa7b04db94e) : workflow is not reusable as it is missing a `on.workflow_call` trigger
push:
needs: test
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
# Set up
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ruby
- name: Update version
run: |
sed -i 's/".*"/"${{ inputs.version }}"/' lib/madmin/version.rb
bundle config set frozen false
bundle
bundle exec appraisal
git config user.name 'GitHub Actions'
git config user.email github-actions@github.com
git add Gemfile.lock gemfiles lib
git commit -m "Version bump"
git push
# Release
- uses: rubygems/release-gem@v1