-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (43 loc) · 1.15 KB
/
ci.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
36
37
38
39
40
41
42
43
44
45
46
47
name: ci
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build PT docs
uses: ./
with:
entrypoint: mkdocs
args: build --config-file=mkdocs.pt.yml
- name: Build EN docs
uses: ./
with:
entrypoint: mkdocs
args: build --config-file=mkdocs.en.yml
# - name: Copy redirect index page
# run: sudo cp /index.html /site
- uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Deploy docs to gh-pages branch
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache
- run: pip install mkdocs-material
- run: pip install mike --force-reinstall --verbose
# - run: mike deploy --push --update-aliases 1.0 latest --ignore
# - run: mkdocs gh-deploy --force