mirror of
https://github.com/rvtr/rmc_website.git
synced 2025-06-18 18:25:31 -04:00
18 lines
413 B
YAML
18 lines
413 B
YAML
name: update server
|
|
run-name: Update locally hosted server
|
|
on: [push]
|
|
jobs:
|
|
update:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: SSH
|
|
uses: appleboy/ssh-action@v1.1.0
|
|
with:
|
|
host: ${{ secrets.SERVER_HOST }}
|
|
username: ${{ secrets.SERVER_USERNAME }}
|
|
password: ${{ secrets.SERVER_PASSWORD }}
|
|
port: 22
|
|
script: |
|
|
cd /var/www
|
|
./build_site.sh
|