fix: Remove Node.js setup and markmap-cli installation steps from dep… #12
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 Page | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
pages: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout ----------------- | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
submodules: recursive | |
# Transform Markdown to HTML in Target Folder ---------------- | |
- name: Transform Several Markdown to HTML | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: hsiangjenli/markmap:latest | |
options: --platform linux/amd64 -v ${{ github.workspace }}:/workspace | |
run: | | |
for file in /workspace/source/_static/markmap/*.md; do | |
markmap $file -o ${file%.md}.html --no-open | |
done | |
# Sphinxdoc Image ---------------- | |
- name: Use Docker Image | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: hsiangjenli/sphinx-doc:paper-digest-2024-11-19 | |
options: --platform linux/amd64 -v ${{ github.workspace }}:/docs --user root | |
run: | | |
python source/_static/gen_keyword/script.py && make html | |
# Deploy ---------------- | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./build/html |