added git pull in workflow #44
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: | ||
workflow_dispatch: | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Setup SSH | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
- name: Setup SSH known_hosts | ||
run: | | ||
mkdir -p ~/.ssh | ||
ssh-keyscan -H 15.236.36.30 >> ~/.ssh/known_hosts | ||
- name: SSH Commands | ||
run: ssh -o StrictHostKeyChecking=yes [email protected] ' | ||
cd spark-matcher | ||
git pull | ||
' | ||