Ruby Release #7
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: Ruby Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
dotnet: | |
name: Ruby Release | |
runs-on: ubuntu-24.04 | |
environment: release | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
- name: Regen openapi libs | |
run: | | |
yarn | |
./regen_openapi.sh | |
- name: Install dependencies | |
run: | | |
cd ruby | |
bundler install | |
- name: Build | |
run: | | |
cd ruby | |
bundler exec rake build | |
- name: Publish | |
run: | | |
mkdir -p "$HOME/.gem" | |
touch "$HOME/.gem/credentials" | |
chmod 0600 "$HOME/.gem/credentials" | |
printf -- "---\n:rubygems_api_key: %s\n" "$RUBYGEMS_AUTH_TOKEN" > "$HOME/.gem/credentials" | |
cd ruby | |
gem push pkg/*.gem | |
env: | |
RUBYGEMS_AUTH_TOKEN: "${{secrets.RUBYGEMS_AUTH_TOKEN}}" |