Ruby 3 compatibility #4
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 and Publish Gem | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
name: "Build gem package" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: "Publish gem" | |
shell: bash | |
run: | | |
mkdir ~/.gem | |
echo '---' > ~/.gem/credentials | |
echo ':github: Bearer ${{ secrets.GITHUB_TOKEN }}' >> ~/.gem/credentials | |
chmod 0600 ~/.gem/credentials | |
make publish |