---
name: Build
on: [push, pull_request]

jobs:
  # Build job. Builds app for Android with Buildozer
  build-android:
    name: Build for Android
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Add SSH Key
        run: echo "${{ secrets.SSHKEY }}" | tee ./secret_ssh_key > /dev/zero

      - name: Testing rsync transfer
        run: bash ${GITHUB_WORKSPACE}/.github/rsync.sh README.md /tmp/ files.l3d.ch files ./secret_ssh_key

#      - name: Build with Buildozer
#        uses: actions/gh-buildozer-action@v1
#        id: buildozer
#        with:
#          workdir: hello_world
#          buildozer_version: stable