mirror of
https://github.com/GeekOops/doc.git
synced 2024-05-09 08:25:44 +00:00
Add CI to new pull requests
Run a simple hugo build step on every pull request to ensure the website remains healthy.
This commit is contained in:
parent
596cf5d5fe
commit
de2c94dc13
21
.github/workflows/CI.yml
vendored
Normal file
21
.github/workflows/CI.yml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
name: Check hugo build
|
||||
|
||||
'on':
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
submodules: true
|
||||
ssh-key: ''
|
||||
|
||||
- name: Setup Hugo
|
||||
uses: peaceiris/actions-hugo@v2
|
||||
|
||||
- name: Build
|
||||
run: hugo --minify
|
Loading…
Reference in a new issue