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