some change in name in README.md #1
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: deploying | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
name: setting up | |
runs-on: debian-latest | |
steps: | |
- name: Setup SSH | |
uses: webfactory/ssh-agent@v0.5.4 | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: SSH into Server and Deploy | |
run: | | |
ssh -o StrictHostKeyChecking=no ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} \ | |
"cd ${{ secrets.WORK_DIR }} && \ | |
git fetch origin master && \ | |
git reset --hard origin/master && \ | |
./scripts/deploy.sh" |