www_mycelium/.github/workflows/tf_update_prod.yml
ehab-hassan abb1996c42
Some checks are pending
www2.mycelium.threefold.io/ / Deploy (push) Waiting to run
www2.mycelium.threefold.io/ / Wait for Website Update (push) Blocked by required conditions
www2.mycelium.threefold.io/ / Check for Broken Links (push) Blocked by required conditions
update
2025-06-18 13:19:50 +03:00

46 lines
1.1 KiB
YAML

name: www.threefold_io
on:
push:
branches: [ master ]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: pushing latest change on www.mycelium.threefold.io
uses: appleboy/ssh-action@master
with:
host: www.mycelium.threefold.io
username: root
key: ${{ secrets.TF_SECRET }}
port: 22
script: |
cd /opt/www.mycelium.threefold.io/
git log -1
git fetch
git reset --hard origin/master
sed -i "s/https:\/\/dev.threefold.io/https:\/\/www.mycelium.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://www.mycelium.threefold.io -w 404'