-
-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (31 loc) · 935 Bytes
/
main.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
name: Publish docs via GitHub Pages
on:
push:
branches:
- master
permissions:
contents: write
id-token: write
pages: write
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v1
- name: Setup Go environment
uses: actions/[email protected]
with:
# The Go version to download (if necessary) and use. Supports semver spec and ranges. Be sure to enclose this option in single quotation marks.
go-version: 1.22
- name: Build api docs
working-directory: ./src
run: go run ./generators/api/main.go
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CUSTOM_DOMAIN: kaijuengine.org
#EXTRA_PACKAGES: build-base
#REQUIREMENTS: folder/requirements.txt