Clean repo #1
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: 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: ./ |