Update README.md #3
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: 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 |