-
Notifications
You must be signed in to change notification settings - Fork 42
47 lines (40 loc) · 1.4 KB
/
build-artifacts.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
name: Release
on:
push:
pull_request:
branches: main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout builds
uses: actions/checkout@main
- name: Setup JDK 11
uses: actions/setup-java@main
with:
java-version: 11
distribution: adopt
- name: Setup Android SDK
uses: android-actions/setup-android@7c5672355aaa8fde5f97a91aa9a99616d1ace6bc # v2.0.10
- name: Setup credentials
run: |
base64 -d <<< "$KEYSTORE_BASE64" > $HOME/keystore.jks
env:
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
- name: Build Artifact
run: |
chmod +x ./gradlew
./gradlew app:assembleRelease \
-Pandroid.injected.signing.store.file="$HOME/keystore.jks" \
-Pandroid.injected.signing.store.password="$KEYSTORE_PASSWORD" \
-Pandroid.injected.signing.key.alias="$KEY_ALIAS" \
-Pandroid.injected.signing.key.password="$KEY_PASSWORD"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KEY_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
- uses: actions/upload-artifact@main
with:
name: VencordDev
path: app/build/outputs/apk/release/app-release.apk