Skip to content

Commit

Permalink
use script instead and run on branches
Browse files Browse the repository at this point in the history
  • Loading branch information
AshleyDumaine committed Apr 11, 2024
1 parent e33a36a commit 1e1e45b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy Github Pages
on:
push:
branches:
- main
- '*'
paths:
- 'README.md'
- 'docs/**'
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Setup mdBook
run: |
apt-get update
apt-get install curl -y
apt-get install curl wget -y
mkdir mdbook
curl -sSL https://github.com/rust-lang/mdbook/releases/download/v0.4.37/mdbook-v0.4.37-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
curl -sSL https://github.com/tommilligan/mdbook-admonish/releases/download/v1.15.0/mdbook-admonish-v1.15.0-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
Expand All @@ -32,18 +32,19 @@ jobs:
run: |
cd docs
mdbook build
- name: Check broken links
env:
INPUT_URL: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}
INPUT_PAGES_PATH: docs/book
INPUT_CMD_PARAMS: '--verbose --buffer-size=8192 --max-connections=10 --color=always --skip-tls-verification'
run: |
wget -qO- https://raw.githubusercontent.com/ruzickap/action-my-broken-link-checker/v2/entrypoint.sh | bash
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'docs/book'
- name: Check broken links
uses: ruzickap/action-my-broken-link-checker@v2
with:
url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}
pages_path: docs/book
cmd_params: '--buffer-size=8192 --max-connections=10 --color=always --skip-tls-verification --header="User-Agent:curl/7.54.0" --timeout=20'

deploy-page:
needs: generate-docs
Expand Down

0 comments on commit 1e1e45b

Please sign in to comment.