Skip to content

Commit 315f65a

Browse files
committed
ci: add release.yml
1 parent 019c31b commit 315f65a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release gems
2+
on:
3+
workflow_dispatch:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
id-token: write
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0 # Fetch current tag as annotated. See https://github.com/actions/checkout/issues/290
19+
- uses: ruby/setup-ruby@v1
20+
with:
21+
ruby-version: 3.2
22+
bundler-cache: true
23+
- name: Configure RubyGems Credentials
24+
uses: rubygems/configure-rubygems-credentials@main
25+
- name: Publish to RubyGems
26+
run: |
27+
gem install gem-release
28+
gem release ruby-next-parser

0 commit comments

Comments
 (0)