Skip to content
This repository has been archived by the owner on Jan 31, 2025. It is now read-only.

Commit

Permalink
Turning off push to old server
Browse files Browse the repository at this point in the history
  • Loading branch information
tjayrush committed Feb 20, 2024
1 parent 3ea5ab9 commit c685092
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions .github/workflows/build-deploy-linkcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,30 +43,33 @@ jobs:
- name: Checkout that deploy branch
run: git checkout -f deploy

- name: Rsync to the server machine
uses: burnett01/[email protected]
with:
switches: -avzr --delete --exclude=".git" --exclude=".github"
path: public/
remote_path: /home/docs/Websites/trueblocks.io
remote_host: ${{ secrets.HOST }}
remote_user: ${{ secrets.HOST_USER }}
remote_key: ${{ secrets.DEPLOY_SSH_KEY }}
# - name: Rsync to the server machine
# uses: burnett01/[email protected]
# with:
# switches: -avzr --delete --exclude=".git" --exclude=".github"
# path: public/
# remote_path: /home/docs/Websites/trueblocks.io
# remote_host: ${{ secrets.HOST }}
# remote_user: ${{ secrets.HOST_USER }}
# remote_key: ${{ secrets.DEPLOY_SSH_KEY }}

- name: Install linkinator
run: npm install -g linkinator
# - name: Install linkinator
# run: npm install -g linkinator

- name: Run lininator
run: linkinator -r index.html docs/ papers/ data-model/ api/ --skip localhost:23456 --skip tokenomics.io --skip etherscan.io --skip https://twitter.com/trueblocks --skip intro
# - name: Run lininator
# run: linkinator -r index.html docs/ papers/ data-model/ api/ --skip localhost:23456 --skip tokenomics.io --skip etherscan.io --skip https://twitter.com/trueblocks --skip intro

- name: Deploy to new server also
- name: Deploy to new server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.NEW_SERVER_HOST }}
username: ${{ secrets.DOCS_USER }}
key: ${{ secrets.DOCS_PRIVATE_KEY }}
script: |
cd /home/${{ secrets.DOCS_USER }}/trueblocks-website
git checkout main
git pull
npm run build
chown -R ${{ secrets.DOCS_USER }}:trueblocks .
cp -pR * /var/www/trueblocks.io/html/
echo "Running lininator..."
Expand Down

0 comments on commit c685092

Please sign in to comment.