Release #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |