Skip to content

Commit 7150ba8

Browse files
Update and rename static.yml to index.yml (#16)
Signed-off-by: Muhammad Rizwan Munawar <muhammadrizwanmunawar123@gmail.com>
1 parent 897b46d commit 7150ba8

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
name: Deploy README.md Page
1+
name: Deploy README.md as HTML
22

33
on:
4-
# Runs on pushes targeting the default branch
54
push:
65
branches: ["main"]
7-
8-
# Allows you to run this workflow manually from the Actions tab
96
workflow_dispatch:
107

118
permissions:
@@ -23,16 +20,25 @@ jobs:
2320
name: github-pages
2421
url: ${{ steps.deployment.outputs.page_url }}
2522
runs-on: ubuntu-latest
23+
2624
steps:
2725
- name: Checkout
2826
uses: actions/checkout@v4
27+
28+
- name: Install pandoc
29+
run: sudo apt-get install -y pandoc
30+
31+
- name: Convert README.md to index.html
32+
run: pandoc README.md -f markdown -t html -s -o index.html
33+
2934
- name: Setup Pages
3035
uses: actions/configure-pages@v5
36+
3137
- name: Upload artifact
3238
uses: actions/upload-pages-artifact@v3
3339
with:
34-
# Upload entire repository
35-
path: '.'
40+
path: '.' # This will now include index.html
41+
3642
- name: Deploy to GitHub Pages
3743
id: deployment
3844
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)