Skip to content

v3.0.0

v3.0.0 #7

Workflow file for this run

name: Publish
on:
release:
types: [published]
jobs:
ci:
name: CI
uses: ./.github/workflows/ci.yml
publish-to-rubygems:
name: Publish to RubyGems
permissions:
contents: write
id-token: write
needs: ci
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 3.1
- uses: rubygems/release-gem@v1
with:
await-release: false
publish-to-github-packages:
name: Publish to GitHub Packages
permissions:
contents: read
packages: write
needs: ci
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 3.1
- run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:github: Bearer ${{ secrets.GITHUB_TOKEN }}\n" > $HOME/.gem/credentials
- run: bundle exec rake release
env:
BUNDLE_GEM__PUSH_KEY: github
RUBYGEMS_HOST: "https://rubygems.pkg.github.com/${{ github.repository_owner }}"