File tree Expand file tree Collapse file tree 5 files changed +39
-184
lines changed Expand file tree Collapse file tree 5 files changed +39
-184
lines changed Original file line number Diff line number Diff line change
1
+ name : Android CI
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ pull_request :
7
+ branches : [ main ]
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+
15
+ - name : set up JDK
16
+ uses : actions/setup-java@v1
17
+ with :
18
+ java-version : 11
19
+
20
+ - name : Cache Gradle and wrapper
21
+ uses : actions/cache@v2
22
+ with :
23
+ path : |
24
+ ~/.gradle/caches
25
+ ~/.gradle/wrapper
26
+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
27
+ restore-keys : |
28
+ ${{ runner.os }}-gradle-
29
+ - name : Make Gradle executable
30
+ run : chmod +x ./gradlew
31
+
32
+ - name : Build with Gradle
33
+ run : ./gradlew build
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7
7
jobs :
8
8
publish :
9
9
name : Release build and publish
10
- runs-on : ubuntu-22.04
10
+ runs-on : ubuntu-latest
11
11
steps :
12
12
- name : Check out code
13
- uses : actions/checkout@v3.1.0
13
+ uses : actions/checkout@v2
14
14
- name : Set up JDK 11
15
- uses : actions/setup-java@v3.6.0
15
+ uses : actions/setup-java@v2
16
16
with :
17
17
distribution : adopt
18
18
java-version : 11
19
19
- name : Release build
20
- # assembleRelease for all modules, excluding non-library modules: samples, docs
21
- run : ./gradlew assembleRelease -x :app:assembleRelease
20
+ run : ./gradlew assemble --scan
22
21
- name : Source jar and dokka
23
- run : ./gradlew androidSourcesJar javadocJar
22
+ run : ./gradlew androidSourcesJar javadocJar --scan
24
23
- name : Publish to MavenCentral
25
- run : ./gradlew publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository
24
+ run : ./gradlew publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository --scan
26
25
env :
27
26
OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
28
27
OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
You can’t perform that action at this time.
0 commit comments