Skip to content

Commit bfa174b

Browse files
Prepare Trusted Publisher (#16)
* 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/ * CI: Use latest Ruby and bundled gems for Publish --------- Co-authored-by: Olle Jonsson <olle.jonsson@gmail.com>
1 parent fe40c1a commit bfa174b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/publish.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ on:
66

77
jobs:
88
build:
9-
name: Publish to Rubygems
9+
name: Publish to RubyGems
1010
runs-on: ubuntu-latest
11-
11+
permissions:
12+
contents: write
13+
id-token: write
1214
steps:
1315
- uses: actions/checkout@v4
1416

15-
- name: Set up Ruby 2.7
17+
- name: Set up latest Ruby
1618
uses: ruby/setup-ruby@v1
1719
with:
18-
ruby-version: 2.7
20+
bundler-cache: true
1921

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

0 commit comments

Comments
 (0)