Skip to content

Release

Release #16

Workflow file for this run

name: Release
on: workflow_dispatch
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Clone Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ruby/setup-ruby@master
- name: Install gems
run: bundle install
- name: Setup git config
run: |
# Setup the username and email to enable git tag creation
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: Create release
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
bundle exec rake release
env:
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}