-
-
Notifications
You must be signed in to change notification settings - Fork 75
35 lines (32 loc) · 917 Bytes
/
docs.yaml
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
name: docs
on:
workflow_dispatch:
push:
branches: [ 'docs*' ]
tags: [ 'v*' ]
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: 1.21.x
cache-dependency-path: |
**/go.sum
**/go.mod
- name: Generate cmd docs
run: make prep-docs
- name: Run mkdocs
uses: mhausenblas/mkdocs-deploy-gh-pages@e55ecab6718b449a90ebd4313f1320f9327f1386 # master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CUSTOM_DOMAIN: timoni.sh
CONFIG_FILE: mkdocs.yml
REQUIREMENTS: hack/mkdocs/requirements.txt