-
Notifications
You must be signed in to change notification settings - Fork 178
50 lines (41 loc) · 1 KB
/
ruby-release.yml
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
48
49
50
name: Ruby Release
on:
workflow_dispatch:
workflow_run:
workflows:
- Mega Releaser
types:
- completed
jobs:
dotnet:
name: Ruby Release
runs-on: ubuntu-24.04
environment: release
steps:
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Regen openapi libs
run: |
yarn
./regen_openapi.sh
- name: Install dependencies
run: |
cd ruby
bundler install
- name: Build
run: |
cd ruby
bundler exec rake build
- name: Publish
run: |
mkdir -p "$HOME/.gem"
touch "$HOME/.gem/credentials"
chmod 0600 "$HOME/.gem/credentials"
printf -- "---\n:rubygems_api_key: %s\n" "$RUBYGEMS_AUTH_TOKEN" > "$HOME/.gem/credentials"
cd ruby
gem push pkg/*.gem
env:
RUBYGEMS_AUTH_TOKEN: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"