File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Deploy README.md Page
1+ name : Deploy README.md as HTML
22
33on :
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
118permissions :
@@ -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
You can’t perform that action at this time.
0 commit comments