Skip to content

Deploy to Server

Deploy to Server #46

Workflow file for this run

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
'