We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbe2dcd commit 947be55Copy full SHA for 947be55
.github/workflows/release.yaml
@@ -2,24 +2,27 @@ name: Release
2
3
on:
4
push:
5
- branches: [ main ]
+ tags:
6
+ - v*
7
workflow_dispatch:
8
9
permissions:
- contents: write
10
+ contents: read
11
id-token: write
12
13
jobs:
14
release:
15
runs-on: ubuntu-latest
16
steps:
17
- uses: actions/checkout@v5
- with:
18
- fetch-depth: 0
19
- name: Set up Ruby
20
uses: ruby/setup-ruby@v1
21
with:
22
ruby-version: '3.4'
23
- bundler-cache: true
24
- - name: Publish to RubyGems (trusted publishing)
25
- uses: rubygems/[email protected]
+ bundler-cache: false
+ - name: Configure RubyGems credentials (OIDC)
+ uses: rubygems/[email protected]
+ - name: Build gem
26
+ run: gem build *.gemspec
27
+ - name: Push gem
28
+ run: gem push *.gem
0 commit comments