Skip to content

Clean repo

Clean repo #1

Workflow file for this run

name: Convert and Deploy
on:
push:
branches: [main]
jobs:
convert_via_pandoc:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Pandoc
run: |
sudo apt-get update
sudo apt-get -y install pandoc
pandoc --version
- name: Generate RSS
run: pandoc feed.yml --template .common/template.rss >> feed.rss
- name: Convert MD to HTML
run: find . -name "*index.md" | while read i; do pandoc -f markdown -t html --template=.common/template.html --toc --no-highlight --mathjax "${i}" >> "${i%.md}.html"; done
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./