From f64c57b2f96d60b2a19cac7a4ad89318da77c315 Mon Sep 17 00:00:00 2001 From: Peter Nashaat Date: Mon, 18 Nov 2024 14:05:13 +0000 Subject: [PATCH] adding auto dep for development_sasha branch --- .github/workflows/update_dev2.yml | 46 +++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/update_dev2.yml diff --git a/.github/workflows/update_dev2.yml b/.github/workflows/update_dev2.yml new file mode 100644 index 000000000..fa19830bc --- /dev/null +++ b/.github/workflows/update_dev2.yml @@ -0,0 +1,46 @@ +name: www3.threefold_io +on: + push: + branches: [ development_sasha ] + +jobs: + deploy: + 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: webuser + key: ${{ secrets.TF_SECRET }} + port: 34022 + script: | + cd websites/tmp/www_threefold_io/ + git log -1 + git restore . + git pull + sed -i "s/https:\/\/dev.threefold.io/https:\/\/dev2.threefold.io/g" config.toml + bash 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://www3.threefold.io -w 404'