Skip to content

Commit 183e683

Browse files
Use configure_trusted_publisher
1 parent f9faa85 commit 183e683

File tree

3 files changed

+41
-50
lines changed

3 files changed

+41
-50
lines changed

.github/workflows/gem-push.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/push_gem.yml

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

singed.gemspec

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ Gem::Specification.new do |spec|
77
spec.license = "MIT"
88
spec.authors = ["Josh Nichols"]
99
spec.email = ["[email protected]"]
10-
1110
spec.summary = "Quick and easy way to get flamegraphs from a specific part of your code base"
1211
spec.required_ruby_version = ">= 2.7.0"
12+
spec.homepage = "https://github.com/rubyatscale/singed"
13+
spec.metadata = {
14+
"source_code_uri" => "https://github.com/rubyatscale/singed.git",
15+
"bug_tracker_uri" => "https://github.com/rubyatscale/singed/issues",
16+
"homepage_uri" => "https://github.com/rubyatscale/singed"
17+
}
1318

1419
spec.files = Dir["README.md", "*.gemspec", "lib/**/*", "exe/**/*"]
1520
spec.bindir = "exe"
@@ -22,6 +27,4 @@ Gem::Specification.new do |spec|
2227
spec.add_development_dependency "rake", "~> 13.0"
2328
spec.add_development_dependency "rspec"
2429

25-
# For more information and examples about making a new gem, checkout our
26-
# guide at: https://bundler.io/guides/creating_gem.html
2730
end

0 commit comments

Comments
 (0)