-
Notifications
You must be signed in to change notification settings - Fork 6
31 lines (28 loc) · 766 Bytes
/
wiki.yml
File metadata and controls
31 lines (28 loc) · 766 Bytes
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
name: Generate wiki
on:
push:
branches:
- master
jobs:
build-n-publish:
name: Build and publish Wiki
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install dependencies
run: >-
pip install pydoc-markdown mkdocs
- name: Generate docs
run: |
mkdir docs
pydoc-markdown -I codeforces_api/ --render-toc > docs/Home.md
- name: Upload Documentation to Wiki
uses: SwiftDocOrg/github-wiki-publish-action@v1
with:
path: docs/
env:
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}