Skip to content

Commit e956a6d

Browse files
djsmentyaolleolleolle
authored andcommitted
Prepare Trusted Publisher
This PR makes the changes in the Workflow which makes use Trusted Publisher. https://guides.rubygems.org/trusted-publishing/adding-a-publisher/ > [!NOTE] > Merge this when the relevant RubyGems.org changes are in!
1 parent f91e49a commit e956a6d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ on:
44
release:
55
types: [published]
66

7-
permissions:
8-
contents: read # to checkout the code (actions/checkout)
97
jobs:
108
build:
119
name: Publish to Rubygems
1210
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: write
14+
id-token: write
1315

1416
steps:
1517
- uses: actions/checkout@v4
@@ -20,6 +22,4 @@ jobs:
2022
ruby-version: 2.7
2123

2224
- name: Publish to RubyGems
23-
uses: dawidd6/action-publish-gem@v1
24-
with:
25-
api_key: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
25+
uses: rubygems/release-gem@v1

0 commit comments

Comments
 (0)