-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (34 loc) · 1.17 KB
/
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
name: Make Release / Publish to OSS / Promote to Maven Central
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set RELEASE_VERSION
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF##*/v}
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: Print information
run: echo "Version ${{ env.RELEASE_VERSION }}"
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: '11'
java-package: jdk
architecture: x64
- name: Build / Upload to OSS sonatype / Promote to Maven Central
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
uses: eskatos/gradle-command-action@v1
with:
gradle-version: 7.5.1
arguments: '--info --stacktrace
-Pversion=${{ env.RELEASE_VERSION }}
-Psigning.password=${{ secrets.GPG_SIGNING_PASSWORD }}
-PossrhUsername=kochetkov-ma
-PossrhPassword=${{ secrets.ossrhPassword }}
-x test publish createRepository closeAndReleaseRepository --no-build-cache --rerun-tasks'