Skip to content

Commit

Permalink
decouple check and build
Browse files Browse the repository at this point in the history
It's annoying when transient web failures break updates
  • Loading branch information
dae committed Aug 3, 2021
1 parent ce52647 commit 7c28d6f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/build.sh
Expand Up @@ -2,4 +2,7 @@

(cd && git clone https://github.com/ankitects/mdbook-binaries.git)
export PATH="$HOME/mdbook-binaries:$PATH"
if [ "$CHECK" = "" ]; then
rm $HOME/mdbook-binaries/mdbook-linkcheck
fi
mdbook build
10 changes: 9 additions & 1 deletion .github/workflows/gh-pages.yml
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Build and check
- name: Build
run: .github/workflows/build.sh

- name: Deploy
Expand All @@ -24,3 +24,11 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book/html
cname: ${{ env.cname }}

check:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2

- name: Build
run: CHECK=1 .github/workflows/build.sh

0 comments on commit 7c28d6f

Please sign in to comment.