mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-03-25 02:43:23 -04:00
39 lines
730 B
YAML
Executable File
39 lines
730 B
YAML
Executable File
name: 📘 Deploy MkDocs
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.9'
|
|
|
|
- name: Install MkDocs
|
|
run: |
|
|
pip install \
|
|
mkdocs==1.6.0 \
|
|
mkdocs-material==9.5.21 \
|
|
mkdocs-github-admonitions-plugin==0.0.4
|
|
|
|
- name: Build MkDocs
|
|
run: mkdocs build
|
|
|
|
- name: Add CNAME
|
|
run: |
|
|
echo "docs.netalertx.com" > site/CNAME
|
|
|
|
- name: Deploy MkDocs
|
|
run: mkdocs gh-deploy --force
|