修复两处Bug: #29
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: auto-publish | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
auto-update: # job_id | |
name: Markdown2HTML # 作业显示在 GitHub 上的名称。 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 # optional, default is 3.x | |
- name: Convert markdown to html | |
run: | | |
pip install markdown2 | |
cd tools | |
python markdown2html.py | |
cd .. | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./results/htmls |