add missing steps for deployment

This commit is contained in:
lookshe 2025-01-13 12:55:44 +01:00
parent 410e0054fe
commit 3b85a13af2

View file

@ -17,8 +17,9 @@ jobs:
echo "${{ secrets.SSH_RPIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -p "${{ vars.SSH_PORT }}" -H "${{ vars.SSH_HOST }}" > ~/.ssh/known_hosts
- name: test
run: |
env
ls $GITHUB_WORKSPACE
- name: create remote directory
run: ssh -p "${{ vars.SSH_PORT }}" "${{ vars.SSH_USER }}"@"${{ vars.SSH_HOST }}" 'mkdir -p ${{ vars.SSH_DEPLOY_DIR }}'
- name: sync .htaccess file
run: rsync -avzP -e 'ssh -p ${{ vars.SSH_PORT }}' "$GITHUB_WORKSPACE/.htaccess" "${{ vars.SSH_USER }}@${{ vars.SSH_HOST }}:${{ vars.SSH_DEPLOY_DIR }}/.htaccess"
- name: sync src folder
run: rsync -avzP -e 'ssh -p ${{ vars.SSH_PORT }}' "$GITHUB_WORKSPACE/src/" "${{ vars.SSH_USER }}@${{ vars.SSH_HOST }}:${{ vars.SSH_DEPLOY_DIR }}/src/"