-
-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (35 loc) · 975 Bytes
/
release_gem.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
on:
push:
branches: main
jobs:
code_quality:
uses: ./.github/workflows/main.yml
release-gem:
runs-on: ubuntu-latest
needs: code_quality
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: '0'
ref: ${{github.head_ref}}
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
- name: Setup
run: |
git config user.email "[email protected]"
git config user.name "Max VelDink"
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
env:
GEM_HOST_API_KEY: "${{secrets.RUBY_GEMS_PUSH_API_KEY}}"
- name: Install
run: gem install gemsmith
- name: Publish
run: gemsmith --publish