github: deploy Debian package as part of snapshots

This commit is contained in:
Harsh Shandilya 2021-10-02 16:45:52 +05:30
parent 62ccbd8f81
commit 74847c5ef0
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
2 changed files with 10 additions and 4 deletions

View file

@ -8,6 +8,7 @@ mkdir -p "$SSHDIR"
echo "$ACTIONS_DEPLOY_KEY" > "$SSHDIR/key"
chmod 600 "$SSHDIR/key"
mkdir -p "$GITHUB_WORKSPACE/Claw"
cp -v ./android/build/outputs/apk/release/android-release.apk "$GITHUB_WORKSPACE/Claw/Claw.apk"
find . -type f -name '*.apk' -exec cp {} "$GITHUB_WORKSPACE/Claw/Claw.apk" \;
find . -type f -name '*.deb' -exec cp {} "$GITHUB_WORKSPACE/Claw/" \;
cd "$GITHUB_WORKSPACE/Claw"
rsync -ahvcr --omit-dir-times --progress --delete --no-o --no-g -e "ssh -i $SSHDIR/key -o StrictHostKeyChecking=no -p $SSH_PORT" . "$SERVER_DEPLOY_STRING"