a new workflow for readme.md files to wiki

This commit is contained in:
Hamidreza
2025-04-30 18:34:53 +03:30
parent edfbdb22e9
commit 7a4a33ef37
3 changed files with 114 additions and 89 deletions

9
.github/workflows/markdownList.yml vendored Normal file
View File

@ -0,0 +1,9 @@
# This file maps source markdown files to their target wiki pages
# format:
# - source: path/to/markdown/file.md
# target: Wiki-Page-Name
mappings:
- source: benchmarks/rotatingDrum/readme.md
target: Performance-of-phasicFlow
# Add more mappings as needed

View File

@ -5,8 +5,10 @@ on:
branches:
- main
paths:
- 'benchmarks/*/readme.md'
- '**/*.md'
- '.github/workflows/sync-wiki.yml'
- '.github/workflows/markdownList.yml'
- '.github/scripts/sync-wiki.py'
workflow_dispatch:
jobs:
@ -27,12 +29,12 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.10'
- name: Install dependencies
run: pip install beautifulsoup4
run: pip install pyyaml
- name: Sync specific README files to Wiki
- name: Sync markdown files to Wiki
run: |
python $GITHUB_WORKSPACE/repo/.github/scripts/sync-wiki.py
env: