From d25440f0515798abe4f2a390e92eb14565bf0730 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 28 Mar 2023 17:55:10 +0300 Subject: [PATCH] fix ssh for phpdoc pipeline --- .gitea/workflows/phpdoc.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/phpdoc.yml b/.gitea/workflows/phpdoc.yml index be4ed06b2..cd04042e1 100644 --- a/.gitea/workflows/phpdoc.yml +++ b/.gitea/workflows/phpdoc.yml @@ -17,5 +17,11 @@ jobs: - name: phpdoc run: php81 /phpDocumentor.phar -d classes -d include -t phpdoc --visibility=public + - name: prepare ssh + run: | + mkdir -p ~/.ssh + echo "${{ secrets.APK_DEPLOY_SSH_KEY }}" | tr -d \\r > ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519 + - name: upload results run: rsync -e 'ssh -o StrictHostKeyChecking=no' phpdoc/ ${{ secrets.APK_DEPLOY_USER }}@${{ secrets.APK_DEPLOY_HOST }}:phpdoc/