File tree Expand file tree Collapse file tree 3 files changed +78
-0
lines changed
Expand file tree Collapse file tree 3 files changed +78
-0
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1+ name : Publish android to Maven Central
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ publish :
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - name : Checkout code
12+ uses : actions/checkout@v2
13+
14+ - name : Setup Java
15+ uses : actions/setup-java@v2
16+ with :
17+ java-version : ' 11'
18+ distribution : ' adopt'
19+
20+ - name : Cache Gradle packages
21+ uses : actions/cache@v2
22+ with :
23+ path : ~/.gradle/caches
24+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
25+ restore-keys : ${{ runner.os }}-gradle
26+
27+ - name : Set up permissions client
28+ run : chmod +x ./src/AndroidClient/gradlew
29+
30+ - name : Build android
31+ working-directory : ./src/AndroidClient
32+ run : ./gradlew android:build
33+
34+ - name : Publish to Maven Central
35+ env :
36+ OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
37+ OSSRH_TOKEN : ${{ secrets.OSSRH_TOKEN }}
38+ working-directory : ./src/AndroidClient
39+ run : ./gradlew android:publishAllPublicationsToOSSRHRepository
Original file line number Diff line number Diff line change 1+ name : Publish client to Maven Central
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ publish :
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - name : Checkout code
12+ uses : actions/checkout@v2
13+
14+ - name : Setup Java
15+ uses : actions/setup-java@v2
16+ with :
17+ java-version : ' 11'
18+ distribution : ' adopt'
19+
20+ - name : Cache Gradle packages
21+ uses : actions/cache@v2
22+ with :
23+ path : ~/.gradle/caches
24+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
25+ restore-keys : ${{ runner.os }}-gradle
26+
27+ - name : Set up permissions client
28+ run : chmod +x ./src/AndroidClient/gradlew
29+
30+ - name : Build client
31+ working-directory : ./src/AndroidClient
32+ run : ./gradlew client:build
33+
34+ - name : Publish to Maven Central
35+ env :
36+ OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
37+ OSSRH_TOKEN : ${{ secrets.OSSRH_TOKEN }}
38+ working-directory : ./src/AndroidClient
39+ run : ./gradlew client:publishAllPublicationsToOSSRHRepository
You can’t perform that action at this time.
0 commit comments