Skip to content

Update markdown-to-html.yml #8

Update markdown-to-html.yml

Update markdown-to-html.yml #8

name: Convert Markdown to HTML
on:
push:
branches:
- main # Change this to your default branch if it's not 'main'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Pandoc
run: |
sudo apt-get update
sudo apt-get install -y pandoc
- name: Convert README.md to HTML
run: |
pandoc README.md -o index.html
- name: Commit and push changes
run: |
git config --local user.name "github-actions"
git config --local user.email "[email protected]"
git add index.html
git commit -m "Update index.html from README.md" || echo "No changes to commit"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}