mirror of
https://github.com/nubenetes/awesome-kubernetes.git
synced 2026-05-21 16:43:36 +00:00
40 lines
940 B
YAML
40 lines
940 B
YAML
name: Publish docs via GitHub Pages
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
jobs:
|
|
build:
|
|
name: Deploy Dual Versions
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout master
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Install MkDocs and Material
|
|
run: |
|
|
pip install mkdocs-material pymdown-extensions
|
|
|
|
# 1. Build V1 (Root)
|
|
- name: Build V1 Edition
|
|
run: mkdocs build -f mkdocs.yml -d site/
|
|
|
|
# 2. Build V2 (Subdirectory)
|
|
- name: Build V2 Elite Edition
|
|
run: mkdocs build -f v2-mkdocs.yml -d site/v2/
|
|
|
|
- name: Deploy to GitHub Pages
|
|
uses: peaceiris/actions-gh-pages@v4
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./site
|
|
cname: nubenetes.com
|
|
|