Convert Readme.md to HTML #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: ls -lart | |
- run: markdown-to-html --source README.md --output index.html | |
- run: mkdir temp && mv index.html temp/index.html && ls -lart | |
- name: Github commit and push | |
uses: github-actions-x/[email protected] | |
with: | |
name: github-actions | |
email: [email protected] | |
commit-message: Auto Documentation Generated | |
push-branch: gh-pages | |
force-push: true | |
rebase: true | |
files: temp/index.html |