1
0
Fork 0

Refactor signing config

This commit is contained in:
Vendicated 2022-12-20 19:24:12 +01:00
parent 3f4fe35faa
commit 90a1841a97
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905
2 changed files with 10 additions and 21 deletions

View file

@ -24,29 +24,28 @@ jobs:
- name: Setup credentials
run: |
base64 -d <<< "$KEYSTORE_BASE64" > $HOME/keystore.jks
mkdir -p ~/.gradle
cat > ~/.gradle/gradle.properties << EOF
KEYSTORE_FILE=$HOME/keystore.jks
KEYSTORE_ALIAS=$KEYSTORE_ALIAS
KEYSTORE_PASSWORD=$KEYSTORE_PASSWORD
EOF
env:
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
KEYSTORE_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
- name: Get some values needed for the release
id: release_values
run: |
echo "release_tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Build
- name: Build Release
run: |
chmod +x ./gradlew
./gradlew app:assembleRelease
./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"
mv app/build/outputs/apk/release/app-release.apk Vencord-$TAG.apk
gh release create $TAG --generate-notes --title "Vencord $TAG" Vencord-$TAG.apk
env:
TAG: ${{ env.release_tag }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KEY_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}

View file

@ -14,16 +14,6 @@ android {
versionName "1.0"
}
signingConfigs {
release {
// Add these in ~/.gradle/gradle.properties
storeFile file(KEYSTORE_FILE)
storePassword KEYSTORE_PASSWORD
keyAlias KEYSTORE_ALIAS
keyPassword KEYSTORE_PASSWORD
}
}
buildTypes {
debug {
applicationIdSuffix ".dbg"