-
Notifications
You must be signed in to change notification settings - Fork 37
33 lines (31 loc) · 993 Bytes
/
sphinx.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
name: Sphinx
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- uses: actions/checkout@v1
- run: sudo apt install gettext
- run: pip install -r requirements.txt
- name: sphinx build(ja)
working-directory: ./docs
run: sphinx-build . ../public
- name: sphinx build(en)
working-directory: ./docs
run: sphinx-build . ../public/en -D language=en -A language=en
- run: mkdir -p public/licenses/1.0/pdf
- run: cp docs/_static/licenses/1.0/pdf/jp.pdf public/licenses/1.0/pdf/jp.pdf
- run: cp docs/_static/licenses/1.0/pdf/en.pdf public/licenses/1.0/pdf/en.pdf
- run: touch public/.nojekyll
- run: echo vrm.dev > public/CNAME
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public