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
3 changed files
with
148 additions
and
144 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 |
---|---|---|
|
@@ -19,6 +19,20 @@ jobs: | |
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Build API page | ||
uses: seeebiii/redoc-cli-github-action@v10 | ||
with: | ||
args: "bundle --options.disableGoogleFont=true content/api/openapi.yaml -o public/api/index.html" | ||
|
||
# - name: Push to deploy branch | ||
# uses: peaceiris/actions-gh-pages@v3 | ||
# with: | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# publish_dir: ./public | ||
# publish_branch: deploy | ||
# - name: checkout deploy | ||
# run: git checkout -f deploy | ||
|
||
- name: Setup Hugo | ||
uses: peaceiris/actions-hugo@v2 | ||
with: | ||
|
@@ -28,37 +42,30 @@ jobs: | |
- name: Build Hugo site | ||
run: hugo --minify | ||
|
||
- name: Build API page | ||
uses: seeebiii/redoc-cli-github-action@v10 | ||
with: | ||
args: "bundle --options.disableGoogleFont=true content/api/openapi.yaml -o public/api/index.html" | ||
|
||
- name: Push to deploy branch | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./public | ||
publish_branch: deploy | ||
|
||
- name: Install linkinator | ||
run: npm install -g linkinator | ||
|
||
- name: checkout deploy | ||
run: git checkout -f deploy | ||
|
||
- name: rsync deployments | ||
uses: burnett01/[email protected] | ||
with: | ||
switches: -avzr --delete --exclude=".git" --exclude=".github" | ||
path: public/ | ||
remote_path: /home/${{ secrets.DOCS_USER }}/trueblocks-website | ||
remote_host: ${{ secrets.NEW_SERVER_HOST }} | ||
remote_user: ${{ secrets.DOCS_USER }} | ||
remote_key: ${{ secrets.DOCS_PRIVATE_KEY }} | ||
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: check links | ||
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: Test Failure | ||
uses: rjstone/discord-webhook-notify@v1 | ||
if: failure() | ||
with: | ||
severity: error | ||
details: Test Failed! | ||
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} | ||
|
||
- name: Report job status | ||
run: | | ||
echo "This job's status is ${{ job.status }}" |
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
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