Update deptest.yml #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to server | |
on: push | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up SSH key | |
run: | | |
env | |
mkdir -p ~/.ssh | |
echo "${{ secrets.PRIVATE_SSH_KEY }}" > ~/.ssh/id_rsa | |
chmod 600 ~/.ssh/id_rsa | |
ssh-keyscan -p 22 ${{ secrets.HOST }} >> ~/.ssh/known_hosts | |
sudo apt-get install sshpass | |
- name: Deploy to server | |
run: | | |
#sshpass -p '${{ secrets.PWD }}' ssh -v -o StrictHostKeyChecking=no ${{ secrets.USER }}@${{ secrets.HOST }} <<'ENDSSH' | |
touch /tmp/git_deploy |