test dirty deployment
Some checks failed
Build / Build for Android (push) Failing after 8s

This commit is contained in:
L3D 2023-05-12 00:49:32 +02:00
parent c8560b6b27
commit 2e55e2888c
No known key found for this signature in database
GPG key ID: AD65B920933B4B20
2 changed files with 17 additions and 7 deletions

13
.github/rsync.sh vendored Normal file
View file

@ -0,0 +1,13 @@
#! /usr/bin/env bash
set -Eeuo pipefail
set -x
# README.md /tmp/ files.l3d.ch files ./secret_ssh_key
printf "Add SSH Private Key"
mkdir ~/.ssh
chmod 700 ~/.ssh
mv $5 ~/.ssh/id_ed25519
chmod 400 ~/.ssh/id_ed25519
ssh-keyscan -t ed25519 $3 | tee -a ~/.ssh/known_hosts
rsync --progress $1 $4@$3:$2

View file

@ -12,14 +12,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Add SSH Key
run: echo "${{ secrets.SSHKEY }}" > ./secret_ssh_key
- name: Testing rsync transfer
uses: actions/rsync@c7bfb1a69a3c4f00c72944495e2e518f1788a4be
width:
source: README.md
destionation: "/tmp/"
host: "files.l3d.ch"
user: "files"
sshkey: "${{ secrets.SSHKEY }}"
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