Skip to content

Commit 9209d96

Browse files
Merge pull request #30 from rubyatscale/configure_trusted_publisher
Configure trusted publisher
2 parents f9faa85 + 69b0bcd commit 9209d96

File tree

3 files changed

+42
-51
lines changed

3 files changed

+42
-51
lines changed

.github/workflows/gem-push.yml

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

.github/workflows/push_gem.yml

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

singed.gemspec

Lines changed: 6 additions & 4 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"
@@ -21,7 +26,4 @@ Gem::Specification.new do |spec|
2126

2227
spec.add_development_dependency "rake", "~> 13.0"
2328
spec.add_development_dependency "rspec"
24-
25-
# For more information and examples about making a new gem, checkout our
26-
# guide at: https://bundler.io/guides/creating_gem.html
2729
end

0 commit comments

Comments
 (0)