-
-
Notifications
You must be signed in to change notification settings - Fork 25
47 lines (44 loc) · 1.01 KB
/
release.yml
File metadata and controls
47 lines (44 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Release
on:
workflow_dispatch:
inputs:
semver:
description: Bump
required: true
type: choice
options:
- major
- minor
- patch
permissions:
contents: read
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
-
name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
ssh-key: ${{ secrets.RELEASE_SSH_KEY }}
-
name: Set up Ruby 3.4
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4
bundler-cache: true
-
name: Update version
run: |
git config user.name github-actions
git config user.email github-actions@github.com
bundle config unset deployment
bundle exec rake "version[${{ inputs.semver }}]"
-
name: Build and push gem
run: bundle exec rake release
env:
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_TOKEN }}