Skip to content

Commit 10e15eb

Browse files
authored
Create deploy-readme.yml
1 parent 687a65c commit 10e15eb

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Deploy README as Homepage
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- README.md
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: 🧾 Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: 🏗️ Install Pandoc
17+
run: sudo apt-get update && sudo apt-get install -y pandoc
18+
19+
- name: 📄 Convert README.md to index.html
20+
run: pandoc README.md -o index.html
21+
22+
- name: 📤 Commit and push index.html
23+
run: |
24+
git config user.name "github-actions"
25+
git config user.email "[email protected]"
26+
27+
git add index.html .nojekyll
28+
git commit -m "Auto-update index.html from ZedGraph/README.md" || echo "No changes to commit"
29+
git push

0 commit comments

Comments
 (0)