feat: add proper nightly signing to android.yml

This commit is contained in:
LucasGGamerM 2023-04-01 20:40:10 -03:00 committed by GitHub
parent 5979341fb9
commit 75161fc694
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 9 deletions

View File

@ -23,18 +23,20 @@ jobs:
- name: Grant execute permission for gradlew - name: Grant execute permission for gradlew
run: chmod +x gradlew run: chmod +x gradlew
- name: Set Secret Properties - name: Decode Keystore
env: id: decode_keystore
LOCAL_PROPERTIES: ${{ secrets.LOCAL_PROPERTIES }} uses: timheuer/base64-to-file@v1
run: echo "$LOCAL_PROPERTIES" > ./local.properties with:
fileName: 'keystore/nightly_keystore.jks'
- name: Prepare release keystore encodedString: ${{ secrets.KEYSTORE }}
run: |
echo "${{ secrets.BASE_64_SIGNING_KEY }}" > release_keystore.jks.asc
gpg -d --passphrase "${{ secrets.BASE_64_SIGNING_KEY_PASSPHRASE }}" --batch release_keystore.jks.asc > release_keystore.jks
- name: Build with Gradle - name: Build with Gradle
run: ./gradlew assembleNightly run: ./gradlew assembleNightly
env:
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
- name: Upload a Build Artifact - name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.2 uses: actions/upload-artifact@v3.1.2
with: with: