mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-24 15:08:02 -05:00
update action
This commit is contained in:
parent
bf77f86e2b
commit
497c5a88ca
30
.github/workflows/docfx.yml
vendored
30
.github/workflows/docfx.yml
vendored
|
|
@ -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
29
.github/workflows/sphinx.yml
vendored
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user