Skip to content

Update main.yml

Update main.yml #2

Workflow file for this run

name: Deploy to Server
on:
push:
branches:
- original # Change to your branch
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Execute remote commands
run: |
ssh -o StrictHostKeyChecking=no [email protected] << 'EOF'
cd rantir-cloud-go
git pull origin original
EOF