Create update_www3.yml

This commit is contained in:
samir
2023-05-29 13:33:15 +03:00
committed by GitHub
parent a682c85ecd
commit 0813c18a93

24
.github/workflows/update_www3.yml vendored Normal file
View File

@@ -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