From d9ef952ea641aaa2e90080004a9d85a48da61886 Mon Sep 17 00:00:00 2001 From: pishoy Date: Tue, 24 May 2022 09:27:38 +0000 Subject: [PATCH] adding github actions support --- .github/workflows/tf_update.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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..7d742a8 --- /dev/null +++ b/.github/workflows/tf_update.yml @@ -0,0 +1,23 @@ +name: Ourworld.tf +on: + push: + branch: [ master ] + +jobs: + job_one: + name: Deploy + runs-on: ubuntu-latest + steps: + - name: pushing latest change on www.ourworld.tf + uses: appleboy/ssh-action@master + with: + host: www.ourworld.tf + username: root + key: ${{ secrets.TF_SECRET }} + port: 22 + script: | + cd /opt/www_ourworld_tf/ + git log -1 + git restore static/css/index.css + git pull + npm run build