From f2a6e1adce99eb1c2d61eb25b1913fa212323c96 Mon Sep 17 00:00:00 2001 From: PeterNashaat Date: Tue, 27 Dec 2022 07:57:17 +0000 Subject: [PATCH] adding auto deployment to www --- .github/workflows/tf_update.yml | 23 +++++++++++++++++++++++ .gitignore | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/tf_update.yml diff --git a/.github/workflows/tf_update.yml b/.github/workflows/tf_update.yml new file mode 100644 index 0000000..e8f83c8 --- /dev/null +++ b/.github/workflows/tf_update.yml @@ -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 diff --git a/.gitignore b/.gitignore index 499540b..54478de 100644 --- a/.gitignore +++ b/.gitignore @@ -25,4 +25,4 @@ run* install* public static/css -tailwindcss \ No newline at end of file +tailwindcss