-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (37 loc) · 1.14 KB
/
release.yaml
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
name: Release
on:
release:
types: [published]
jobs:
publish:
name: Release build and publish
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: refs/remotes/origin/master
- name: set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Cache
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.m2
~/.android/build-cache
key: ${GITHUB_REF##*/}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Release build
run: ./gradlew displayVersion publishToSonatype closeAndReleaseSonatypeStagingRepository --max-workers 1 --no-daemon
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}