-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (33 loc) · 941 Bytes
/
wiki_export.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
name: Export Wiki
on:
push:
branches:
- master
jobs:
export_wiki:
name: Export Wiki
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install pipenv
uses: dschep/install-pipenv-action@v1
- name: Install dependencies
run:
pipenv install
- name: Export API docs
run: pipenv run python export.py --export_docs
- name: Configure Git User
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- name: Upload Documentation to Wiki
uses: SwiftDocOrg/github-wiki-publish-action@v1
with:
path: "temp"
env:
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}