Skip to content

Commit 1633817

Browse files
committed
Use official rubygems/release-gem action for OIDC publishing
1 parent 5f23160 commit 1633817

1 file changed

Lines changed: 3 additions & 34 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -31,38 +31,7 @@ jobs:
3131
uses: ruby/setup-ruby@v1
3232
with:
3333
bundler-cache: true
34+
ruby-version: ruby
3435

35-
- name: Update RubyGems for OIDC support
36-
run: gem update --system
37-
38-
- name: Extract version from branch name
39-
id: version
40-
run: |
41-
VERSION=$(echo "${{ github.event.pull_request.head.ref }}" | sed 's/release\/v//')
42-
echo "version=$VERSION" >> $GITHUB_OUTPUT
43-
echo "Extracted version: $VERSION"
44-
45-
- name: Configure git
46-
run: |
47-
git config user.name "alchemycms-bot"
48-
git config user.email "alchemycms-bot@users.noreply.github.com"
49-
50-
- name: Create and push tag
51-
run: |
52-
git tag "v${{ steps.version.outputs.version }}"
53-
git push origin "v${{ steps.version.outputs.version }}"
54-
55-
- name: Build gem
56-
run: gem build alchemy_cloudinary.gemspec
57-
58-
- name: Publish to RubyGems
59-
run: gem push alchemy_cloudinary-*.gem
60-
61-
- name: Create GitHub Release
62-
uses: softprops/action-gh-release@v2
63-
with:
64-
tag_name: v${{ steps.version.outputs.version }}
65-
generate_release_notes: true
66-
files: alchemy_cloudinary-*.gem
67-
env:
68-
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
36+
- name: Release gem to RubyGems
37+
uses: rubygems/release-gem@v1

0 commit comments

Comments
 (0)