-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* github actions: only run on merge into master * github actions: build PR using hugo
- Loading branch information
Showing
4 changed files
with
52 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
name: Build documentation | ||
# Setup and build files with hugo | ||
# https://github.com/peaceiris/actions-hugo | ||
# Deploy to GitHub pages | ||
# https://github.com/peaceiris/actions-gh-pages | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
deploy: | ||
name: Build with Hugo | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
# Fetch the Docsy theme | ||
submodules: recursive | ||
# Fetch all history for .GitInfo and .Lastmod | ||
fetch-depth: 0 | ||
|
||
- name: Setup Hugo | ||
uses: peaceiris/actions-hugo@v2 | ||
with: | ||
hugo-version: "0.66.0" | ||
extended: true | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
# NodeJS 12 is maintained until 2022-04-30 | ||
node-version: "12.x" | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Install npm project with a clean slate | ||
run: npm ci | ||
|
||
- name: Build and minify using Hugo | ||
run: hugo --minify |
2 changes: 1 addition & 1 deletion
2
.github/workflows/markdown-link-check.yml → .github/workflows/check-links.yml
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,4 +1,4 @@ | ||
name: Check Markdown links | ||
name: Check links | ||
|
||
on: [push, pull_request] | ||
|
||
|
13 changes: 5 additions & 8 deletions
13
.github/workflows/githubpages.yml → .github/workflows/deploy.yml
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
File renamed without changes.