fix ssh for phpdoc pipeline

This commit is contained in:
Andrew Dolgov 2023-03-28 17:55:10 +03:00
parent da620ef5d8
commit d25440f051
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 6 additions and 0 deletions

View File

@ -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/