-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (24 loc) · 811 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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: ./