Skip to content

Commit da53416

Browse files
committed
fix(release): publish via OIDC trusted publishing (release-gem@v1) — the API-key secret does not exist on this repo
1 parent abbe332 commit da53416

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,10 @@ jobs:
3535
cp interscript-*.gem pkg/
3636
ls -la pkg/
3737
38-
- name: Publish to rubygems.org
39-
env:
40-
RUBYGEMS_API_KEY: ${{ secrets.INTERSCRIPT_RUBYGEMS_API_KEY }}
41-
run: |
42-
mkdir -p ~/.gem
43-
printf -- "---\n:rubygems_api_key: %s\n" "$RUBYGEMS_API_KEY" > ~/.gem/credentials
44-
chmod 0600 ~/.gem/credentials
45-
gem push pkg/interscript-*.gem
38+
- name: Publish to rubygems.org (trusted publishing)
39+
# Org law: OIDC trusted publishing, never API-key tokens. Requires
40+
# the one-time rubygems.org trusted-publisher registration for
41+
# this repo + workflow.
42+
permissions:
43+
id-token: write
44+
uses: rubygems/release-gem@v1

0 commit comments

Comments
 (0)