Skip to content

Commit a96b9b6

Browse files
committed
Add the release CI setting
1 parent e9ed4ad commit a96b9b6

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: civitaspo

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release CI
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
release:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Set up JDK 1.8
16+
uses: actions/setup-java@v1
17+
with:
18+
java-version: 1.8
19+
- name: Release the new gem
20+
run: |
21+
mkdir -p $HOME/.gem
22+
touch $HOME/.gem/credentials
23+
chmod 0600 $HOME/.gem/credentials
24+
printf -- "---\n:rubygems_api_key: ${RUBYGEMS_API_KEY}\n" > $HOME/.gem/credentials
25+
./gradlew gemPush
26+
env:
27+
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}

0 commit comments

Comments
 (0)