-
Notifications
You must be signed in to change notification settings - Fork 44
42 lines (33 loc) · 1.03 KB
/
github-pages.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
name: Build docs
on:
push:
branches:
- master
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# HOTFIX for https://github.com/actions/runner/issues/2033
- name: Fix git safe.directory in container
run: mkdir -p /home/runner/work/_temp/_github_home && printf "[safe]\n\tdirectory = /github/workspace" > /home/runner/work/_temp/_github_home/.gitconfig
- name: Build HU docs
uses: ./
with:
entrypoint: mkdocs
args: build --config-file=mkdocs.hu.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
- name: Deploy docs to gh-pages branch
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site