This commit is contained in:
parent
c8560b6b27
commit
2e55e2888c
2 changed files with 17 additions and 7 deletions
13
.github/rsync.sh
vendored
Normal file
13
.github/rsync.sh
vendored
Normal 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
|
11
.github/workflows/buildozer.yml
vendored
11
.github/workflows/buildozer.yml
vendored
|
@ -12,14 +12,11 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Add SSH Key
|
||||||
|
run: echo "${{ secrets.SSHKEY }}" > ./secret_ssh_key
|
||||||
|
|
||||||
- name: Testing rsync transfer
|
- name: Testing rsync transfer
|
||||||
uses: actions/rsync@c7bfb1a69a3c4f00c72944495e2e518f1788a4be
|
run: bash ${GITHUB_WORKSPACE}/.github/rsync.sh README.md /tmp/ files.l3d.ch files ./secret_ssh_key
|
||||||
width:
|
|
||||||
source: README.md
|
|
||||||
destionation: "/tmp/"
|
|
||||||
host: "files.l3d.ch"
|
|
||||||
user: "files"
|
|
||||||
sshkey: "${{ secrets.SSHKEY }}"
|
|
||||||
|
|
||||||
# - name: Build with Buildozer
|
# - name: Build with Buildozer
|
||||||
# uses: actions/gh-buildozer-action@v1
|
# uses: actions/gh-buildozer-action@v1
|
||||||
|
|
Loading…
Reference in a new issue