-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refresh, configure publishing * Configure CI for deploy and snapshots * Adjust repository in docs * Write changelog * Fix dokka task
- Loading branch information
Showing
14 changed files
with
188 additions
and
115 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,35 @@ | ||
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions | ||
# Renaming ? Change the README badge. | ||
name: Build | ||
name: 'Build' | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
|
||
ANDROID_BASE_CHECKS: | ||
name: Base Checks | ||
name: 'Base Checks' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
- uses: actions/setup-java@v2 | ||
with: | ||
java-version: 1.8 | ||
- name: Perform base checks | ||
run: ./gradlew app:assembleDebug library:dokka | ||
java-version: 11 | ||
distribution: temurin | ||
cache: gradle | ||
- name: 'Perform base checks' | ||
run: ./gradlew app:assembleDebug library:dokkaJavadoc | ||
|
||
ANDROID_UNIT_TESTS: | ||
name: Unit Tests | ||
name: 'Unit Tests' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
- uses: actions/setup-java@v2 | ||
with: | ||
java-version: 1.8 | ||
- name: Execute unit tests | ||
java-version: 11 | ||
distribution: temurin | ||
- name: 'Execute unit tests' | ||
run: ./gradlew library:testDebugUnitTest |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions | ||
name: Deploy | ||
name: 'Deploy' | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
BINTRAY_UPLOAD: | ||
name: Bintray Upload | ||
|
||
SONATYPE_DEPLOY: | ||
name: 'Deploy to Sonatype' | ||
runs-on: ubuntu-latest | ||
env: | ||
BINTRAY_USER: ${{ secrets.BINTRAY_USER }} | ||
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }} | ||
BINTRAY_REPO: ${{ secrets.BINTRAY_REPO }} | ||
SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | ||
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | ||
SONATYPE_USER: ${{ secrets.SONATYPE_USER }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
- uses: actions/setup-java@v2 | ||
with: | ||
java-version: 1.8 | ||
- name: Perform bintray upload | ||
run: ./gradlew bintrayUpload | ||
java-version: 11 | ||
distribution: temurin | ||
cache: gradle | ||
- name: 'Publish library' | ||
run: ./gradlew library:publishToSonatype |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: 'Snapshot' | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
|
||
SNAPSHOT: | ||
name: 'Publish Snapshot' | ||
runs-on: ubuntu-latest | ||
env: | ||
SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | ||
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | ||
SONATYPE_USER: ${{ secrets.SONATYPE_USER }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v2 | ||
with: | ||
java-version: 11 | ||
distribution: temurin | ||
cache: gradle | ||
- name: 'Publish library snapshot' | ||
run: ./gradlew library:publishToSonatypeSnapshot |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,9 @@ | ||
buildscript { | ||
|
||
extra["minSdkVersion"] = 16 | ||
extra["compileSdkVersion"] = 29 | ||
extra["targetSdkVersion"] = 29 | ||
extra["kotlinVersion"] = "1.3.72" | ||
|
||
repositories { | ||
mavenCentral() | ||
google() | ||
jcenter() | ||
} | ||
|
||
dependencies { | ||
val kotlinVersion = property("kotlinVersion") as String | ||
classpath("com.android.tools.build:gradle:4.0.0") | ||
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion") | ||
classpath("com.otaliastudios.tools:publisher:0.1.5") | ||
classpath("io.deepmedia.tools:publisher:0.6.0") | ||
} | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
mavenCentral() | ||
google() | ||
jcenter() | ||
} | ||
} | ||
|
||
tasks.register("clean", Delete::class) { | ||
delete(buildDir) | ||
} |
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
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
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
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
Oops, something went wrong.