Skip to content

Commit 55fa351

Browse files
Pin Ruby version to 3.2.8 in workflow
1 parent 1dd8e90 commit 55fa351

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/publish-gem.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,26 @@ name: Publish RubyGem
33
on:
44
push:
55
tags:
6-
- 'v*.*.*'
6+
- 'v*.*.*' # triggers on version tags like v1.2.3
77

88
jobs:
99
publish:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v3 # checkout the repository
1414

1515
- uses: ruby/setup-ruby@v1
1616
with:
17-
ruby-version: '3.x'
18-
bundler-cache: true
17+
ruby-version: '3.2.8' # specify exact Ruby version
18+
bundler-cache: true # enable bundler caching
1919

20-
- name: Build gem
20+
- name: Build gem # build the gem package
2121
run: gem build api_solvecaptcha.gemspec
2222

23-
- name: Push gem to RubyGems
23+
- name: Publish to RubyGems # push the gem to RubyGems.org
2424
env:
2525
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
2626
run: gem push *.gem
27+
28+

0 commit comments

Comments
 (0)