35 lines
740 B
YAML
35 lines
740 B
YAML
![]() |
name: Test Site
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
paths-ignore:
|
||
|
- 'README.md'
|
||
|
- 'LICENSE'
|
||
|
pull_request:
|
||
|
paths-ignore:
|
||
|
- 'README.md'
|
||
|
- 'LICENSE'
|
||
|
|
||
|
jobs:
|
||
|
build-deploy:
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- name: Checkout Repo
|
||
|
uses: actions/checkout@master
|
||
|
with:
|
||
|
submodules: true
|
||
|
- name: Setup Hugo
|
||
|
uses: peaceiris/actions-hugo@v2
|
||
|
with:
|
||
|
hugo-version: 'latest'
|
||
|
extended: true
|
||
|
- uses: actions/cache@v2
|
||
|
with:
|
||
|
path: /tmp/hugo_cache
|
||
|
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }}
|
||
|
restore-keys: |
|
||
|
${{ runner.os }}-hugomod-
|
||
|
- name: Build
|
||
|
run: hugo --gc --minify --cleanDestinationDir
|