Files
reflect-cpp/.github/workflows/mkdocs-gh-pages.yaml
Alexander UhligAwais Mirzagithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>github-actions
7a7b58f25c Added new mkdocs based documentation to the project (#261)
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>
2024-11-19 22:29:35 +01:00

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