Skip to content

Commit 86c0e01

Browse files
authored
ci: add a workflow for release (#316)
1 parent 0e12ee4 commit 86c0e01

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/release.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
3+
# https://github.com/actions/virtual-environments
4+
name: Release
5+
on:
6+
push:
7+
tags:
8+
- "v*"
9+
concurrency: ${{ github.workflow }}
10+
jobs:
11+
gem:
12+
name: Gem
13+
if: github.repository == 'redis-rb/redis-cluster-client'
14+
timeout-minutes: 10
15+
runs-on: ubuntu-latest
16+
permissions:
17+
id-token: write
18+
contents: read
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Set up Ruby
22+
uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: ruby
25+
bundler-cache: true
26+
- uses: rubygems/release-gem@v1

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[![Gem Version](https://badge.fury.io/rb/redis-cluster-client.svg)](https://badge.fury.io/rb/redis-cluster-client)
22
![Test status](https://github.com/redis-rb/redis-cluster-client/workflows/Test/badge.svg?branch=master)
3+
![Release status](https://github.com/redis-rb/redis-cluster-client/workflows/Release/badge.svg)
34

45
Redis Cluster Client
56
===============================================================================

0 commit comments

Comments
 (0)