-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (45 loc) · 1.39 KB
/
docs.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
name: Deploy Docs
on:
workflow_call:
inputs:
subdir:
type: string
required: false
default: "next"
jobs:
build-deploy:
permissions:
contents: write
pages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Build
run: |
sudo apt install -y \
doxygen \
graphviz \
python3-pip \
python3-setuptools
python3 -m pip install mkdocs mkdocs-github-admonitions-plugin mkdocs-get-deps pymdown-extensions mdx_truly_sane_lists
doxygen ./dist/configs/Doxyfile
mkdocs build -f ./dist/configs/mkdocs.yml
bun install -g gh-pages
touch package.json #Needed, as I am not using one in this repo.
#- name: Deploy
# run: |
# git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
# gh-pages -d dist/website -e . -u "github-actions-bot <[email protected]>"
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist/website
destination_dir: ${{ inputs.subdir }}