mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-03 00:26:19 +08:00
Co-authored-by: Awais Mirza <47096947+awaismirza92@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com>
48 lines
1022 B
YAML
48 lines
1022 B
YAML
name: Deploy MkDocs documentation
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- f/mkdocs
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
GH_C17_DEV_TOKEN: ${{ secrets.GH_C17_DEV_TOKEN }}
|
|
ENABLED_HTMLPROOFER: ${{ vars.ENABLED_HTMLPROOFER || 'False' }}
|
|
steps:
|
|
- name: Checkout reflect-cpp repo
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: 3.12
|
|
|
|
- name: Install Hatch
|
|
uses: pypa/hatch@install
|
|
with:
|
|
version: 1.12.0
|
|
|
|
- name: Set git credentials
|
|
run: |
|
|
git config --global user.name "${{ github.actor }}"
|
|
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
|
|
|
|
- name: Fetch latest commit from gh-pages
|
|
run: |
|
|
git fetch origin gh-pages --depth=1
|
|
|
|
- name: Deploy MkDocs documentation
|
|
run: hatch run insiders:mkdocs gh-deploy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|