🔧 Chore: add build workflows

This commit is contained in:
Cell
2022-01-31 11:14:01 +08:00
parent cd7155c077
commit db1c275564
+23
View File
@@ -0,0 +1,23 @@
name: Hugo build check
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
Actions-Hugo-Check:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
with:
submodules: recursive # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: latest
extended: true
- name: Build Hugo static files
run: hugo -v --source=exampleSite --themesDir ../.. --gc