aaaaaaaaaa #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: MkDocs Deployment | ||
on: | ||
push: | ||
branches: | ||
- test | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install MkDocs and dependencies | ||
run: | | ||
pip install mkdocs mkdocs-material mkdocs-static-i18n | ||
- name: Generate documentation | ||
run: mkdocs build | ||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Copy documentation | ||
run: cp -r site public | ||
- name: Deploy documentation | ||
uses: peaceiris/actions-gh-pages@v2 | ||
with: | ||
github_token: ${{ secrets.DEPLOY_GITPAGES }} | ||
publish_dir: public | ||
custom_config: | ||
theme: | ||
name: material | ||
font: false | ||
icon: | ||
logo: material/space-invaders | ||
extra: | ||
social: | ||
- icon: fontawesome/brands/github | ||
link: https://github.com/gaudiatech/kengi | ||
name: kengi on Github | ||
markdown_extensions: | ||
- admonition | ||
plugins: | ||
- search | ||
- i18n: | ||
default_language: !ENV [DEFAULT_LANGUAGE, "en"] | ||
default_language_only: !ENV [DEFAULT_LANGUAGE_ONLY, false] | ||
languages: | ||
en: | ||
name: English | ||
build: true | ||
site_url: https://kata.games/kengi-docs | ||
repo_url: https://github.com/gaudiatech/kengi | ||
fr: | ||
name: Français | ||
build: true | ||
site_name: "Documentation pour Kengi: moteur de jeu" | ||
site_url: https://kata.games/kengi-docs | ||
repo_url: https://github.com/gaudiatech/kengi | ||
nav_translations: | ||
fr: | ||
Bidule: bidule.fr | ||
Topic1: Sujet1 | ||
Topic2: Sujet2 |