mirror of
https://github.com/valitydev/fraudo.git
synced 2024-11-06 09:55:16 +00:00
35 lines
756 B
YAML
35 lines
756 B
YAML
name: deploy
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
env:
|
|
PYTHON_VERSION: 3.x
|
|
|
|
jobs:
|
|
documentation:
|
|
name: Build documentation
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Python runtime
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: ${{ env.PYTHON_VERSION }}
|
|
|
|
- name: Install Python dependencies
|
|
run: |
|
|
pip install -r requirements.txt
|
|
- name: Install theme
|
|
run: |
|
|
pip install mkdocs-gitbook
|
|
- name: Deploy documentation
|
|
env:
|
|
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
|
|
run: |
|
|
mkdocs gh-deploy --force
|
|
mkdocs --version
|