From 3562513797aa2093a640bea1027c98d5ebca065b Mon Sep 17 00:00:00 2001 From: Totto16 Date: Fri, 1 Nov 2024 00:50:45 +0100 Subject: [PATCH] ci: add android deploy step --- .github/workflows/android.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index ebf3b244..e7792ad2 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -63,3 +63,18 @@ jobs: with: name: oopetris.${{ matrix.config.arch }}.apk path: platforms/android/app/build/outputs/apk/debug/app-*-debug.apk + + - uses: wangyucode/sftp-upload-action@v2.0.3 + name: Deploy + if: github.event_name != 'pull_request' + with: + host: fdroid.oopetris.totto.lt + port: ${{ vars.FDROID_FTP_PORT }} + username: ${{ vars.FDROID_FTP_USER }} + password: ${{ secrets.FDROID_FTP_PASSWORD }} + compress: true + localDir: platforms/android/app/build/outputs/apk/debug/ + remoteDir: /repo + exclude: '/output-metadata.json' + forceUpload: true + removeExtraFilesOnServer: false