Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 26 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,39 @@ on:
tags:
- 'v*'

permissions:
contents: read

jobs:
release:
# Builds the gem FROM THIS REPO at the pushed tag and publishes it.
# The previous workflow checked out the monorepo and shipped the
# monorepo's ruby/ tree — the v3.2.0 gem therefore did not contain
# this repo's decode fixes (512-step cap, UTF-8 scrub).
runs-on: ubuntu-latest
permissions:
id-token: write # RubyGems.org trusted publishing (OIDC)
contents: write
steps:
- uses: actions/checkout@v7

- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true
- name: Test
# Cross-compiler execution specs need the monorepo's sibling js/
# assets; that coverage is owned by rake.yml's matrix on every
# push, not by the release gate.
env:
SKIP_JS: "1"
SKIP_PYTHON: "1"

- name: Run the gem's own suite
run: bundle exec rake
- uses: rubygems/release-gem@v1

- name: Build the gem
run: |
mkdir -p pkg
gem build interscript.gemspec
cp interscript-*.gem pkg/
ls -la pkg/

- name: Publish to rubygems.org
env:
RUBYGEMS_API_KEY: ${{ secrets.INTERSCRIPT_RUBYGEMS_API_KEY }}
run: |
mkdir -p ~/.gem
printf -- "---\n:rubygems_api_key: %s\n" "$RUBYGEMS_API_KEY" > ~/.gem/credentials
chmod 0600 ~/.gem/credentials
gem push pkg/interscript-*.gem
2 changes: 1 addition & 1 deletion lib/interscript/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Interscript
VERSION = "3.2.0"
VERSION = "3.2.1"
end
Loading