Skip to content

Update README.md

Update README.md #3

name: Generate GitHub Pages
on:
push:
paths:
- 'README.md'
jobs:
generate-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Pandoc
run: |
sudo apt-get update
sudo apt-get install pandoc
- name: Check if README.md exists
run: ls -l README.md
- name: Build Documentation
run: |
pandoc -s README.md -o docs/index.html --verbose
- name: Commit Documentation
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "GitHub Actions"
git add docs/index.html
git commit -m "Generate HTML documentation"
git push