mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-04 01:06:19 +08:00
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>
This commit is contained in:
co-authored by
Awais Mirza
github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions
parent
efbfd65c81
commit
7a7b58f25c
@@ -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:
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
name: update-people
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
# - f/mkdocs
|
||||
- main
|
||||
schedule:
|
||||
- cron: "0 12 1 * *"
|
||||
workflow_dispatch: {}
|
||||
|
||||
jobs:
|
||||
people:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./.github/actions/people
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user