0.1.6 #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |