-
Notifications
You must be signed in to change notification settings - Fork 31
50 lines (43 loc) · 1.14 KB
/
website.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
38
39
40
41
42
43
44
45
46
47
48
49
50
name: website
## https://github.com/peaceiris/actions-hugo
## https://github.com/github-actions-x/hugo
## https://github.com/github-actions-x/commit
on:
push:
if: github.repository == 'cpanel/elevate'
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
persist-credentials: false
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.91.2'
- name: Build
working-directory: ./docs-website-src
run: |
hugo -D
- name: check delta
run: |
git status
git diff
- name: push
uses: github-actions-x/commit@v2.9
with:
github-token: ${{ secrets.DOCS_DEPLOY_TOKEN }}
push-branch: 'docs'
commit-message: 'Regenerate Documentation Website'
force-add: 'true'
force-push: 'true'
files: docs/
name: GitHub Action
email: github.bot@cpanel.net