forked from Docile-Alligator/Infinity-For-Reddit
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.48 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build
on:
push:
pull_request:
workflow_dispatch:
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set-up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Setup and build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build -x lint
- name: Sign APK
id: sign_apk
uses: ilharp/sign-android-release@v1
with:
releaseDir: app/build/outputs/apk/
signingKey: ${{ secrets.APK_KEYSTORE_FILE_BASE64 }}
keyAlias: ${{ secrets.APK_KEYSTORE_ALIAS }}
keyStorePassword: ${{ secrets.APK_KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.APK_KEYSTORE_PASSWORD }}
- name: Upload apk
uses: actions/upload-artifact@v3
with:
name: Infinity-${{github.sha}}
path: app/build/outputs/apk/
if-no-files-found: error
- name: Release Infinity-For-Reddit APK v7.3.4
uses: softprops/action-gh-release@v1
with:
tag_name: "v7.3.4"
body: New version of Infinity-For-Reddit
files: |
app/build/outputs/apk/release/app-release-unsigned-signed.apk
app/build/outputs/apk/minifiedRelease/app-minifiedRelease-unsigned-signed.apk
app/build/outputs/apk/debug/app-debug-signed.apk
repository: schklom/Infinity-For-Reddit
token: ${{ secrets.PAT_GITHUB_ACTION }}