Skip to content

Convert Readme.md to HTML #22

Convert Readme.md to HTML

Convert Readme.md to HTML #22

Workflow file for this run

name: Documentation generator
run-name: Convert Readme.md to HTML
on: [push]
jobs:
Create-HTML:
runs-on: ubuntu-latest
steps:
- run: npm i markdown-to-html-cli -g
- name: Check out repository code
uses: actions/checkout@v4
- run: mkdir temp_src
- run: mv * temp_src || ls -lart
- run: markdown-to-html --source temp_src/README.md --output index.html
- run: mkdir temp && mv index.html temp/index.html && ls -lart
- run: rm -rf temp_src && mv temp/index.html index.html && rm -rf temp && ls -lart
- name: Github Delete gh-pages branch
uses: dawidd6/[email protected]
with:
branches: gh-pages
- name: Github commit and push
uses: EndBug/[email protected]
with:
author_name: github-actions
author_email: [email protected]
message: Auto Documentation Generated
new_branch: gh-pages
add: index.html