Add CI/CD

This commit is contained in:
rany 2022-10-21 00:05:36 +03:00
parent e22bdd5af1
commit ac230ab7bf
2 changed files with 32 additions and 0 deletions

24
.github/workflows/mkdocs.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: Publish docs via GitHub Pages
on:
push:
branches:
- master
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v2
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
# Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CUSTOM_DOMAIN: bnet.eu.org
CONFIG_FILE: mkdocs.yml
EXTRA_PACKAGES: build-base
# GITHUB_DOMAIN: github.myenterprise.com
REQUIREMENTS: requirements.txt

8
requirements.txt Normal file
View File

@ -0,0 +1,8 @@
mkdocs==1.4.1
mkdocs-blogging-plugin==2.2
mkdocs-cinder==1.2.0
mkdocs-custom-fences==0.1.2
mkdocs-git-revision-date-plugin==0.3.2
mkdocs-material==8.5.6
mkdocs-material-extensions==1.0.3
mkdocs-print-site-plugin==2.3.4