Skip to content

trying to avoid syntax error #76

trying to avoid syntax error

trying to avoid syntax error #76

Workflow file for this run

name: Publish App
on:
pull_request:
branches:
- '**'
jobs:
publish:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
- name: Retrieve secrets to files
env:
KEYSTORE: ${{ secrets.keystore }}
SSH_KEY: ${{ secrets.ssh_key }}
run: |
echo "$KEYSTORE" | base64 -d > kiwix-android.keystore
echo "$SSH_KEY" | base64 -d > ssh_key
chmod 600 ssh_key
- name: Publish APK to download.kiwix.org
env:
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
UNIVERSAL_RELEASE_APK: app/build/outputs/apk/release/*universal*.apk
ARCHIVE_NAME: kiwix-3.8.1.apk
run: |
./gradlew assembleRelease
cp $UNIVERSAL_RELEASE_APK $ARCHIVE_NAME
scp -P 30022 -vrp -i ssh_key -o StrictHostKeyChecking=no "$ARCHIVE_NAME" [email protected]:/data/download/release/kiwix-android/
# This is temporary, once we will publish 3.7.0 then we will uncommented this code.
# # This is necessary for F-Droid
# - name: Publish "versionInfo" to download.kiwix.org
# run: |
# ./gradlew generateVersionCodeAndName
# scp -P 30022 -vrp -i ssh_key -o StrictHostKeyChecking=no VERSION_INFO [email protected]:/data/download/release/kiwix-android/