From 0813c18a938dcf811572c1f063ba2e2957ff39ad Mon Sep 17 00:00:00 2001 From: samir Date: Mon, 29 May 2023 13:33:15 +0300 Subject: [PATCH] Create update_www3.yml --- .github/workflows/update_www3.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/update_www3.yml diff --git a/.github/workflows/update_www3.yml b/.github/workflows/update_www3.yml new file mode 100644 index 000000000..3a7ff4107 --- /dev/null +++ b/.github/workflows/update_www3.yml @@ -0,0 +1,24 @@ +name: www3.threefold_io +on: + push: + branches: [ 3.10.0 ] + +jobs: + job_one: + name: Deploy + runs-on: ubuntu-latest + steps: + - name: pushing latest change on www3.threefold.io + uses: appleboy/ssh-action@master + with: + host: www3.threefold.io + username: root + key: ${{ secrets.TF_SECRET }} + port: 22 + script: | + cd /opt/www3/www_threefold_io/ + git log -1 + git restore . + git pull + sed -i "s/https:\/\/www.threefold.io/https:\/\/www3.threefold.io/g" config.toml + ./build.sh