-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: check links * ci(check-link): set root directory * ci(check-link): fail on errors * ci(check-link): disable verbose * fix(contributing): fix link to build from source
- Loading branch information
Showing
2 changed files
with
28 additions
and
24 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 |
---|---|---|
@@ -1,30 +1,34 @@ | ||
name: "Build Test" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- hugo | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Fetch submodules | ||
run: git submodule update --init --recursive | ||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '13.x' | ||
- run: npm install | ||
- name: Setup Hugo | ||
uses: peaceiris/actions-hugo@v2 | ||
with: | ||
hugo-version: '0.69.2' | ||
extended: true | ||
- name: Build Site | ||
run: | | ||
git config --global core.quotePath false | ||
HUGO_ENV=production hugo --minify | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Fetch submodules | ||
run: git submodule update --init --recursive | ||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "13.x" | ||
- run: npm install | ||
- name: Setup Hugo | ||
uses: peaceiris/actions-hugo@v2 | ||
with: | ||
hugo-version: "0.69.2" | ||
extended: true | ||
- name: Build Site | ||
run: | | ||
git config --global core.quotePath false | ||
HUGO_ENV=production hugo --minify | ||
- name: Check links | ||
id: check-links | ||
uses: peter-evans/link-checker@v1 | ||
with: | ||
args: -r public -d public | ||
- name: Fail on link errors | ||
run: exit ${{ steps.check-links.outputs.exit_code }} |
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