Create main.yml

This commit is contained in:
Lillian Skinner 2024-10-08 23:29:29 -04:00 committed by GitHub
parent 4b49398075
commit 2b3b98ed84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

18
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,18 @@
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 shop