Skip to content

v5.5.3 - Dependency Updates #17

v5.5.3 - Dependency Updates

v5.5.3 - Dependency Updates #17

Workflow file for this run

name: Release Gem
on:
release:
types: [published]
workflow_dispatch:
jobs:
push:
name: Push to RubyGems
runs-on: ubuntu-latest
environment: rubygems
permissions:
id-token: write
contents: read
packages: write
steps:
- uses: actions/checkout@v6
# bundler-cache (next step) writes --local path / --local
# deployment into the tracked `.bundle/config`, which would leave
# the working tree dirty and trip `rake release`'s
# `release:guard_clean` check. Tell git to ignore worktree
# mutations to this file so guard_clean passes while still
# letting Bundler resolve vendor/bundle in the next step.
- run: git update-index --skip-worktree .bundle/config
- uses: ruby/setup-ruby@89f90524b88a01fe6e0b732220432cc6142926af # v1.313.0
with:
ruby-version: "3.4"
bundler-cache: true
- uses: rubygems/release-gem@052cc82692552de3ef2b81fd670e41d13cba8092 # v1.4.0
# Mirror the same .gem to GitHub Packages. The previous step
# leaves the built artifact in pkg/parse-stack-next-X.Y.Z.gem
# (rake build's output dir). GitHub Packages auth uses the
# workflow's GITHUB_TOKEN as a Bearer credential via the
# GEM_HOST_API_KEY env var — no separate PAT needed.
- name: Push to GitHub Packages
env:
GEM_HOST_API_KEY: "Bearer ${{ secrets.GITHUB_TOKEN }}"
run: gem push --host "https://rubygems.pkg.github.com/${{ github.repository_owner }}" pkg/*.gem