Skip to content

Commit 228e8f2

Browse files
committed
Update GitHub workflows
1 parent b4b9d71 commit 228e8f2

File tree

5 files changed

+39
-184
lines changed

5 files changed

+39
-184
lines changed

.github/workflows/android.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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

.github/workflows/build.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

.github/workflows/no-response.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/pr-checks.yml

Lines changed: 0 additions & 91 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,21 @@ on:
77
jobs:
88
publish:
99
name: Release build and publish
10-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-latest
1111
steps:
1212
- name: Check out code
13-
uses: actions/checkout@v3.1.0
13+
uses: actions/checkout@v2
1414
- name: Set up JDK 11
15-
uses: actions/setup-java@v3.6.0
15+
uses: actions/setup-java@v2
1616
with:
1717
distribution: adopt
1818
java-version: 11
1919
- 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
2221
- name: Source jar and dokka
23-
run: ./gradlew androidSourcesJar javadocJar
22+
run: ./gradlew androidSourcesJar javadocJar --scan
2423
- name: Publish to MavenCentral
25-
run: ./gradlew publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository
24+
run: ./gradlew publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository --scan
2625
env:
2726
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
2827
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

0 commit comments

Comments
 (0)