Skip to content

Commit 7bb1f5d

Browse files
committed
fix+release(3.2.1): build the gem from THIS repo at the tag; bump 3.2.1
The release workflow checked out the monorepo and shipped the monorepo's ruby/ tree — the v3.2.0 gem on rubygems does not contain this repo's decode fixes (512-step cap, UTF-8 scrub). 3.2.1 ships them: the workflow checks out the tagged ref, runs this repo's suite, builds from its gemspec, publishes via the API-key secret.
1 parent 3df79ac commit 7bb1f5d

2 files changed

Lines changed: 27 additions & 12 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,39 @@ on:
55
tags:
66
- 'v*'
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
release:
13+
# Builds the gem FROM THIS REPO at the pushed tag and publishes it.
14+
# The previous workflow checked out the monorepo and shipped the
15+
# monorepo's ruby/ tree — the v3.2.0 gem therefore did not contain
16+
# this repo's decode fixes (512-step cap, UTF-8 scrub).
1017
runs-on: ubuntu-latest
11-
permissions:
12-
id-token: write # RubyGems.org trusted publishing (OIDC)
13-
contents: write
1418
steps:
1519
- uses: actions/checkout@v7
20+
1621
- uses: ruby/setup-ruby@v1
1722
with:
1823
ruby-version: '3.3'
1924
bundler-cache: true
20-
- name: Test
21-
# Cross-compiler execution specs need the monorepo's sibling js/
22-
# assets; that coverage is owned by rake.yml's matrix on every
23-
# push, not by the release gate.
24-
env:
25-
SKIP_JS: "1"
26-
SKIP_PYTHON: "1"
25+
26+
- name: Run the gem's own suite
2727
run: bundle exec rake
28-
- uses: rubygems/release-gem@v1
28+
29+
- name: Build the gem
30+
run: |
31+
mkdir -p pkg
32+
gem build interscript.gemspec
33+
cp interscript-*.gem pkg/
34+
ls -la pkg/
35+
36+
- name: Publish to rubygems.org
37+
env:
38+
RUBYGEMS_API_KEY: ${{ secrets.INTERSCRIPT_RUBYGEMS_API_KEY }}
39+
run: |
40+
mkdir -p ~/.gem
41+
printf -- "---\n:rubygems_api_key: %s\n" "$RUBYGEMS_API_KEY" > ~/.gem/credentials
42+
chmod 0600 ~/.gem/credentials
43+
gem push pkg/interscript-*.gem

‎lib/interscript/version.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Interscript
2-
VERSION = "3.2.0"
2+
VERSION = "3.2.1"
33
end

0 commit comments

Comments
 (0)