-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (43 loc) · 1.12 KB
/
tf_update_dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: www2.threefold_io
on:
push:
branches: [ development ]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: pushing latest change on www2.threefold.io
uses: appleboy/ssh-action@master
with:
host: dev.threefold.io
username: webuser
key: ${{ secrets.TF_SECRET }}
port: 34022
script: |
cd websites/www2/www_threefold_io/
git log -1
git fetch
git reset --hard origin/development
sed -i "s/https:\/\/www.threefold.io/https:\/\/dev.threefold.io/g" config.toml
./build.sh
wait:
needs: deploy
name: Wait for Website Update
runs-on: ubuntu-latest
steps:
- name: Wait Period
id: wait-deploy
run: |
echo "Sleeping for 30"
sleep 30
checklinks:
needs: wait
name: Check for Broken Links
runs-on: ubuntu-latest
steps:
- name: Check for Broken Links
id: link-report
uses: docker://ghcr.io/threefoldfoundation/website-link-checker:latest
with:
args: 'https://www2.threefold.io -w 404'