This repository has been archived by the owner on Jan 31, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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..." | ||
|