Skip to content

Commit b22af65

Browse files
author
Sergii Solonyna
committed
Update gem version to 1.0.1, modify homepage URI in gemspec to use spec.homepage, and streamline RubyGems publishing process in GitHub Actions workflow.
1 parent af56a8c commit b22af65

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,8 @@ jobs:
4545
- name: Build gem
4646
run: gem build astroapi.gemspec
4747

48-
- name: Publish to RubyGems
49-
run: |
50-
mkdir -p ~/.gem
51-
echo "---" > ~/.gem/credentials
52-
echo ":rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}" >> ~/.gem/credentials
53-
chmod 0600 ~/.gem/credentials
54-
gem push astroapi-*.gem
55-
rm -f ~/.gem/credentials
48+
- name: Publish to RubyGems (Trusted Publishing)
49+
uses: rubygems/release-gem@v1
5650

5751
- name: Create GitHub Release
5852
env:

astroapi.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
1919
'bug_tracker_uri' => 'https://github.com/astro-api/astroapi-ruby/issues',
2020
'changelog_uri' => 'https://github.com/astro-api/astroapi-ruby/blob/main/CHANGELOG.md',
2121
'documentation_uri' => 'https://www.rubydoc.info/gems/astroapi',
22+
'homepage_uri' => spec.homepage,
2223
'source_code_uri' => 'https://github.com/astro-api/astroapi-ruby',
23-
'homepage_uri' => 'https://github.com/astro-api/astroapi-ruby',
2424
'rubygems_mfa_required' => 'true'
2525
}
2626

lib/astroapi/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Astroapi
4-
VERSION = '1.0.0'
4+
VERSION = '1.0.1'
55
end

0 commit comments

Comments
 (0)