-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1.01 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
name: Release
on:
release:
types: [released]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 17
- name: Update version property
uses: Reedyuk/[email protected]
with:
path: 'library/gradle.properties'
property: 'MODULE_VERSION_NUMBER'
value: ${{ github.ref_name }}
- name: Setup cocoapods
run: gem install cocoapods-generate
- name: Static Analysis
run: ./gradlew detekt
- name: Verify Tests Coverage
run: ./gradlew koverVerify
- name: Build
run: ./gradlew build
- name: Run publish
run: ./gradlew publish
env:
sonatypeUsernameEnv: ${{ secrets.SONATYPEUSERNAME }}
sonatypePasswordEnv: ${{ secrets.SONATYPEPASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_KEY_PASS }}