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

Commit b0c5d60

Browse files
author
Eduard Ablekimov
committed
Implement Github Actions on every v* tag
1 parent 207022e commit b0c5d60

3 files changed

Lines changed: 35 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish Bintray
2+
3+
on:
4+
create:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
publish:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up JDK 1.8
16+
uses: actions/setup-java@v1
17+
with:
18+
java-version: 1.8
19+
- name: Grant execute permission for gradlew
20+
run: chmod +x gradlew
21+
- name: Clean
22+
run: ./gradlew clean
23+
- name: Assemble
24+
run: ./gradlew assemble
25+
- name: Install
26+
run: ./gradlew install
27+
- name: Upload
28+
run: ./gradlew bintrayUpload
29+
env:
30+
bintrayUsername: ${{ secrets.BINTRAY_USER }}
31+
bintrayApiKey: ${{ secrets.BINTRAY_API_KEY }}

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)