activating mkdocs workflow

This commit is contained in:
Alexander Uhlig
2024-11-12 17:01:46 +00:00
committed by GitHub
parent 1ef2f00556
commit 0547fd6daf
4 changed files with 51 additions and 742 deletions
+2 -2
View File
@@ -3,8 +3,8 @@ name: Deploy Jekyll with GitHub Pages dependencies preinstalled
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# push:
# branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
+46
View File
@@ -0,0 +1,46 @@
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 }}
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
+3
View File
@@ -1,6 +1,9 @@
name: update-people
on:
push:
branches:
- feature/docs_migration_mkdocs
schedule:
- cron: "0 12 1 * *"
workflow_dispatch: {}