Setup basic docs build workflow

This commit is contained in:
Awais Mirza
2024-09-30 16:12:27 +02:00
parent 1eded1c278
commit e5725f9f7d
2 changed files with 43 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
name: Deploy MkDocs documentation
on:
push:
branches: ["main"]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
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
- name: Create virtual environment
run: hatch env create
- name: Set git credentials
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
- name: Deploy MkDocs documentation
run: hatch run mkdocs gh-deploy
+2
View File
@@ -1,6 +1,8 @@
[project]
name = "reflect-cpp"
version = "0.14.1"
[tool.hatch.envs.default]
dependencies = [
"mkdocs",
"mkdocs-material",