-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (31 loc) · 970 Bytes
/
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
name: release
on:
push:
tags: [ 'v-[0-9]+.[0-9]+.[0-9]+' ]
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: actions/cache@v2
with:
path: ~/.gradle/wrapper/dists
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-wrapper-
- name: Check
run: ./gradlew check
- name: Publish to sonatype nexus
env:
GPG_KEY: ${{ secrets.GPG_KEY }}
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: ./gradlew publishToSonatype