Skip to content

Commit df084a1

Browse files
committed
Add GH packages
1 parent 8c6295b commit df084a1

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

.github/workflows/android-foss-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737

3838
# Build signed release (your build.gradle wires signing from env vars)
3939
- name: Build FOSS release (APK + AAB)
40+
env:
41+
GPR_USER: ${{ github.actor }}
42+
GPR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4043
run: |
4144
./gradlew clean \
4245
:app:assembleFossRelease \

.github/workflows/android.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Android CI
22

3+
env:
4+
GPR_USER: ${{ github.actor }}
5+
GPR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6+
37
on:
48
push:
59
branches: [ "master" ]
@@ -27,4 +31,7 @@ jobs:
2731
run: chmod +x gradlew
2832

2933
- name: Build with Gradle (show deprecations)
34+
env:
35+
GPR_USER: ${{ github.actor }}
36+
GPR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3037
run: ./gradlew build --warning-mode all

build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ allprojects {
1919
maven {
2020
url 'https://www.jitpack.io'
2121
}
22+
maven {
23+
url = uri("https://maven.pkg.github.com/Pygmalion69/ors-android-client")
24+
credentials {
25+
username = System.getenv("GPR_USER") ?: findProperty("gpr.user")
26+
password = System.getenv("GPR_TOKEN") ?: findProperty("gpr.token")
27+
}
28+
}
2229
}
2330
tasks.withType(JavaCompile).tap {
2431
configureEach {

0 commit comments

Comments
 (0)