Merge pull request #17 from h-m0r1/positive_only_PR #48
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: deploy doc | |
on: | |
push: | |
branch: | |
- main | |
jobs: | |
build: | |
name: Build and deploy doc | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt-get --yes install pandoc | |
- name: Set up python | |
uses: actions/setup-python@v2 | |
- name: Install dependencies | |
run: | | |
pip3 install pandoc ghp-import | |
- name: Build doc | |
run: | | |
cd doc | |
pandoc --standalone --mathjax=https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js -f markdown -t html5 --template=template.html --metadata pagetitle="README" index.md -o index.html | |
cd ${GITHUB_WORKSPACE} | |
ghp-import -n -p -f doc |