add missing steps for deployment
This commit is contained in:
parent
410e0054fe
commit
3b85a13af2
1 changed files with 6 additions and 5 deletions
|
@ -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/"
|
||||
|
|
Loading…
Add table
Reference in a new issue