Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Commit 44bd0ea

Browse files
authored
Merge pull request #5 from AckeeCZ/feature/github-actions-ci
Implement Github Actions on every v* tag
2 parents dae56a5 + 4f4ba26 commit 44bd0ea

3 files changed

Lines changed: 31 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish Bintray
2+
3+
on:
4+
create:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: set up JDK 1.8
16+
uses: actions/setup-java@v1
17+
with:
18+
java-version: 1.8
19+
20+
- name: Create Artifacts
21+
run: ./gradlew install
22+
23+
- name: Publish To Bintray
24+
env:
25+
bintrayUsername: ${{ secrets.BINTRAY_USER }}
26+
bintrayApiKey: ${{ secrets.BINTRAY_API_KEY }}
27+
run: ./gradlew bintrayUpload

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ buildscript {
1010
dependencies {
1111
classpath 'com.android.tools.build:gradle:4.0.0'
1212
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
13-
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
14-
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
13+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
14+
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
1515
}
1616
}
1717

gradle/bintray/bintray.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ Properties properties = new Properties()
3535
properties.load(project.rootProject.file('local.properties').newDataInputStream())
3636

3737
bintray {
38-
user = properties.getProperty("bintray.user")
39-
key = properties.getProperty("bintray.apikey")
38+
user = System.getenv("bintrayUsername")
39+
key = System.getenv("bintrayApiKey")
4040

4141
configurations = ['archives']
4242
pkg {

0 commit comments

Comments
 (0)