adding autodeployment

This commit is contained in:
PeterNashaat 2022-10-25 13:49:40 +00:00
parent 3c76eb1b70
commit bff2cf08f6

View File

@ -8,15 +8,15 @@ jobs:
name: Deploy name: Deploy
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: pushing latest change on www2.ourverse.tf - name: pushing latest change on www.ourverse.tf
uses: appleboy/ssh-action@master uses: appleboy/ssh-action@master
with: with:
host: www2.ourverse.tf host: www.ourverse.tf
username: webuser username: webuser
key: ${{ secrets.TF_SECRET }} key: ${{ secrets.TF_SECRET }}
port: 34022 port: 34022
script: | script: |
cd /home/webuser/websites/www2/www_ourverse/ cd /home/webuser/websites/www_ourverse
git log -1 git log -1
git restore static/css/index.css git restore static/css/index.css
git pull git pull