Skip to content

Commit 9036554

Browse files
committed
Set up the trusted publisher together with @segiddins
1 parent 124ceb1 commit 9036554

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/push_gem.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Push Gem
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
push:
11+
if: github.repository == 'simplecov-ruby/simplecov'
12+
runs-on: ubuntu-latest
13+
14+
environment:
15+
name: rubygems.org
16+
url: https://rubygems.org/gems/simplecov
17+
18+
permissions:
19+
contents: write
20+
id-token: write
21+
22+
steps:
23+
# Set up
24+
- name: Harden Runner
25+
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
26+
with:
27+
egress-policy: audit
28+
29+
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
30+
- name: Set up Ruby
31+
uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.176.0
32+
with:
33+
bundler-cache: true
34+
ruby-version: ruby
35+
36+
# Release
37+
- uses: rubygems/release-gem@612653d273a73bdae1df8453e090060bb4db5f31 # v1

0 commit comments

Comments
 (0)