Skip to content

Release

Release #1

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
version:
description: The version to release
required: true
default: patch
type: choice
options:
- major
- minor
- patch
- pre
- release
jobs:
release:
runs-on: ubuntu-latest
permissions:
id-token: write # This is required for requesting the JWT
contents: write # This is required for actions/checkout and bump
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
- uses: rubygems/configure-rubygems-credentials@main
with:
role-to-assume: ${{ secrets.RUBYGEMS_API_KEY_ROLE }}
- run: |
git config --global user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
git config --global user.name "${{ github.actor }}"
# sanity check before bump
- run: gem build spinels.gemspec
- run: gem install ./spinels-*.gem
- run: rm spinels-*.gem
- run: |
gem install gem-release
- run: |
gem bump --version ${{ inputs.version }} --push --tag --release