16 lines
570 B
YAML
16 lines
570 B
YAML
on: [push]
|
|
jobs:
|
|
build:
|
|
runs-on: node-16
|
|
steps:
|
|
- uses: http://github.com/actions/checkout@v4
|
|
- name: Install SSH Key
|
|
uses: http://github.com/shimataro/ssh-key-action@v2
|
|
with:
|
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
name: id_ed25519
|
|
known_hosts: "just-a-placeholder-so-we-dont-get-errors"
|
|
- name: Adding Known Hosts
|
|
run: ssh-keyscan -H vps.sad.ovh >> ~/.ssh/known_hosts
|
|
- name: Git Pull on Remote
|
|
run: ssh ${{ secrets.SSH_USER }}@vps.sad.ovh "cd /var/www/lvmodpack && git pull"
|