Skip to content

Commit

Permalink
Use Trusted Publishing on RubyGems.org
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed Dec 31, 2023
1 parent 8b2e711 commit 9d137be
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:

runs-on: ubuntu-latest

permissions:
id-token: write

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -23,7 +26,8 @@ jobs:
with:
ruby-version: ruby

- name: Configure trusted publishing credentials
uses: rubygems/[email protected]

- name: Release
run: rake -f -r bundler/gem_tasks release
env:
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
runs: rake -f -r bundler/gem_tasks release
5 changes: 3 additions & 2 deletions sassc-embedded.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require_relative 'lib/sassc/embedded/version'

Gem::Specification.new do |spec| # rubocop:disable Gemspec/RequireMFA
Gem::Specification.new do |spec|
spec.name = 'sassc-embedded'
spec.version = SassC::Embedded::VERSION
spec.authors = ['なつき']
Expand All @@ -14,7 +14,8 @@ Gem::Specification.new do |spec| # rubocop:disable Gemspec/RequireMFA
spec.metadata = {
'documentation_uri' => 'https://rubydoc.info/gems/sassc',
'source_code_uri' => "#{spec.homepage}/tree/v#{spec.version}",
'funding_uri' => 'https://github.com/sponsors/ntkme'
'funding_uri' => 'https://github.com/sponsors/ntkme',
'rubygems_mfa_required' => 'true'
}

spec.files = Dir['lib/**/*.rb', 'vendor/github.com/sass/sassc-ruby/lib/**/*.rb'] + [
Expand Down

0 comments on commit 9d137be

Please sign in to comment.