mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-12 16:26:23 +00:00
a new workflow for readme.md files to wiki
This commit is contained in:
9
.github/workflows/markdownList.yml
vendored
Normal file
9
.github/workflows/markdownList.yml
vendored
Normal 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
|
10
.github/workflows/sync-wiki.yml
vendored
10
.github/workflows/sync-wiki.yml
vendored
@ -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:
|
||||
|
Reference in New Issue
Block a user