forked from xapi-project/xen-api
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 980 Bytes
/
hugo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Generate and upload Hugo docs
on:
push:
branches: master
jobs:
ocaml:
name: Docs
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.127.0'
- name: Build
run: |
cd doc
hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.ACTIONS_DOCS_DEPLOY_KEY }}
publish_dir: ./doc/public
user_name: 'Github action on xapi-project/xen-api'
user_email: 'github-actions-xapi-project-xen-api[bot]@users.noreply.github.com'
external_repository: xapi-project/xapi-project.github.io
publish_branch: master
destination_dir: new-docs # temporary staging branch
allow_empty_commit: false
enable_jekyll: true # do not create .nojekyll file