update action

This commit is contained in:
ousttrue 2021-09-14 16:21:23 +09:00
parent bf77f86e2b
commit 497c5a88ca
2 changed files with 29 additions and 30 deletions

View File

@ -1,30 +0,0 @@
name: DocFX
on:
push:
branches:
- master
jobs:
build:
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
# build docfx site to docfx/_site
- name: DocFX
shell: cmd
run: |
choco install docfx -y
docfx docfx\docfx.json
# push docfx/_site to gh-pages
- name: Publish Documentation on GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docfx/_site

29
.github/workflows/sphinx.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: Sphinx
on:
push:
jobs:
build:
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- uses: actions/checkout@v1
- run: pip install sphinx
- run: pip install myst-parser
- run: sudo apt install gettext
- run: pip install sphinx-intl
- name: sphinx build(ja)
working-directory: ./docs
run: sphinx-build . ../public/ja
- name: sphinx build(en)
working-directory: ./docs
run: sphinx-build . ../public/en -D language=en
- name: copy index.html
run: cp docs/index.html public/index.html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public