Skip to content

Commit

Permalink
Switch to using Trusted Publishers for RubyGems authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Waslowski committed Feb 13, 2024
1 parent b4cd645 commit d52ee9d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ on:

jobs:
release:
if: "github.repository_owner == 'cr7pt0gr4ph7'"
if: github.repository == 'cr7pt0gr4ph7/jekyll-gem-resolver'
name: "Release Gem (Ruby ${{ matrix.ruby_version }})"
runs-on: "ubuntu-latest"
permissions:
contents: write
id-token: write
strategy:
fail-fast: true
matrix:
Expand All @@ -23,8 +26,4 @@ jobs:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- name: Build and Publish Gem
uses: ashmaroli/release-gem@dist
with:
gemspec_name: "jekyll-gem-resolver"
env:
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_GEM_PUSH_API_KEY }}
uses: rubygems/release-gem@v1
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# frozen_string_literal: true
require "bundler/gem_tasks"
1 change: 1 addition & 0 deletions jekyll-gem-resolver.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = '>= 3.0'
spec.add_development_dependency 'jekyll', '~> 4.3.3'
spec.add_development_dependency "bundler", ">= 2.0"
spec.add_development_dependency "rake", "~> 13.0"
end
2 changes: 1 addition & 1 deletion lib/jekyll/gem_resolver/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Jekyll
module GemResolver
VERSION = '0.0.1'
VERSION = '0.0.2'
end
end

0 comments on commit d52ee9d

Please sign in to comment.