adding auto deployment to www

This commit is contained in:
PeterNashaat 2022-12-27 07:57:17 +00:00
parent a0f64935bd
commit f2a6e1adce
2 changed files with 24 additions and 1 deletions

23
.github/workflows/tf_update.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: ourparadise.ourworld.tf
on:
push:
branch: [main]
jobs:
job_one:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: pushing latest change on ourparadise.ourworld.tf
uses: appleboy/ssh-action@master
with:
host: ourparadise.ourworld.tf
username: webuser
key: ${{ secrets.TF_SECRET }}
port: 34022
script: |
cd /home/webuser/websites/www_ourparadise/
git log -1
git restore .
git pull
bash build.sh

2
.gitignore vendored
View File

@ -25,4 +25,4 @@ run*
install* install*
public public
static/css static/css
tailwindcss tailwindcss