Skip to content

Commit

Permalink
Merge pull request #30 from rubyatscale/configure_trusted_publisher
Browse files Browse the repository at this point in the history
Configure trusted publisher
  • Loading branch information
technicalpickles committed May 9, 2024
2 parents f9faa85 + 69b0bcd commit 9209d96
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 51 deletions.
47 changes: 0 additions & 47 deletions .github/workflows/gem-push.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/push_gem.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Push Gem

on:
workflow_dispatch:
push:
tags:
- 'v*'

permissions:
contents: read

jobs:
push:
if: github.repository == 'rubyatscale/singed.git'
runs-on: ubuntu-latest

permissions:
contents: write
id-token: write

steps:
# Set up
- name: Harden Runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
with:
egress-policy: audit

- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Set up Ruby
uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.176.0
with:
bundler-cache: true
ruby-version: ruby

# Release
- uses: rubygems/release-gem@612653d273a73bdae1df8453e090060bb4db5f31 # v1
10 changes: 6 additions & 4 deletions singed.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ Gem::Specification.new do |spec|
spec.license = "MIT"
spec.authors = ["Josh Nichols"]
spec.email = ["josh.nichols@gusto.com"]

spec.summary = "Quick and easy way to get flamegraphs from a specific part of your code base"
spec.required_ruby_version = ">= 2.7.0"
spec.homepage = "https://github.com/rubyatscale/singed"
spec.metadata = {
"source_code_uri" => "https://github.com/rubyatscale/singed.git",
"bug_tracker_uri" => "https://github.com/rubyatscale/singed/issues",
"homepage_uri" => "https://github.com/rubyatscale/singed"
}

spec.files = Dir["README.md", "*.gemspec", "lib/**/*", "exe/**/*"]
spec.bindir = "exe"
Expand All @@ -21,7 +26,4 @@ Gem::Specification.new do |spec|

spec.add_development_dependency "rake", "~> 13.0"
spec.add_development_dependency "rspec"

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

0 comments on commit 9209d96

Please sign in to comment.