mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 14:38:50 +00:00
32 lines
929 B
YAML
32 lines
929 B
YAML
name: build docs
|
|
on:
|
|
push:
|
|
branches:
|
|
- docs
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: "recursive"
|
|
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: '3.7'
|
|
architecture: 'x64'
|
|
- name: Install dependencies
|
|
run: |
|
|
python3 -m pip install --upgrade pip # install pip
|
|
python3 -m pip install mkdocs # install mkdocs
|
|
python3 -m pip install mkdocs-material # install material theme
|
|
python3 -m pip install -r ./requirements.txt
|
|
|
|
- name: Build site
|
|
run: mkdocs build
|
|
- name: Deploy
|
|
uses: JamesIves/[email protected]
|
|
with:
|
|
branch: gh-pages
|
|
folder: site |