Update tf_update.yml

This commit is contained in:
PeterNashaat
2023-05-09 16:41:05 +03:00
committed by GitHub
parent 6aa3101bb7
commit 7cc5912c54

View File

@@ -1,17 +1,17 @@
name: Threefold_io name: www2.threefold_io
on: on:
push: push:
branch: [ master ] branches: [ development ]
jobs: jobs:
job_one: job_one:
name: Deploy name: Deploy
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: pushing latest change on www.threefold.io - name: pushing latest change on www2.threefold.io
uses: appleboy/ssh-action@master uses: appleboy/ssh-action@master
with: with:
host: www.threefold.io host: www2.threefold.io
username: root username: root
key: ${{ secrets.TF_SECRET }} key: ${{ secrets.TF_SECRET }}
port: 22 port: 22
@@ -21,5 +21,6 @@ jobs:
git restore config.toml git restore config.toml
git restore static/css/index.css git restore static/css/index.css
git pull git pull
sed -i "s/https:\/\/threefoldfoundation.github.io\/www_threefold_io/https:\/\/www2.threefold.io/g" config.toml
./build.sh ./build.sh