From fb567fb3ec51ca0950db5225b0666adf9158c32a Mon Sep 17 00:00:00 2001 From: peternashaat Date: Thu, 11 Aug 2022 14:25:26 +0000 Subject: [PATCH] adding auto deployment to dev branch --- .github/workflows/tf_update._yml | 44 ++++++++++++++++---------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/tf_update._yml b/.github/workflows/tf_update._yml index 95143ff..6ab513c 100644 --- a/.github/workflows/tf_update._yml +++ b/.github/workflows/tf_update._yml @@ -1,23 +1,23 @@ -# name: Threefold_io -# on: -# push: -# branch: [ development ] + name: ourverse.tf + on: + push: + branch: [ development ] -# jobs: -# job_one: -# name: Deploy -# runs-on: ubuntu-latest -# steps: -# - name: pushing latest change on www2.threefold.io -# uses: appleboy/ssh-action@master -# with: -# host: www2.threefold.io -# username: root -# key: ${{ secrets.TF_SECRET }} -# port: 22 -# script: | -# cd /opt/www_threefold_io/ -# git log -1 -# git restore static/css/index.css -# git pull -# npm run build + jobs: + job_one: + name: Deploy + runs-on: ubuntu-latest + steps: + - name: pushing latest change on www2.ourverse.tf + uses: appleboy/ssh-action@master + with: + host: www2.ourverse.tf + username: root + key: ${{ secrets.TF_SECRET }} + port: 22 + script: | + cd /opt/www_ourverse/ + git log -1 + git restore static/css/index.css + git pull + npm run build