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