Skip to content
This repository was archived by the owner on Jan 25, 2024. It is now read-only.

Commit 9ac613a

Browse files
committed
Fix #202 auto publish the release to bintray using github actions
- Username and api key comes from secret
1 parent 04f52a1 commit 9ac613a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/publish.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish Bintray
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v1
11+
- name: Set up JDK 1.8
12+
uses: actions/setup-java@v1
13+
with:
14+
java-version: 1.8
15+
- name: Grant Permission to Execute
16+
run: chmod +x gradlew
17+
- name: Publish Library
18+
env:
19+
BINTRAY_USERNAME: ${{ secrets.BINTRAY_USERNAME }}
20+
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
21+
run: ./gradlew bintrayUpload

0 commit comments

Comments
 (0)