Skip to content

fix: Remove Node.js setup and markmap-cli installation steps from dep… #12

fix: Remove Node.js setup and markmap-cli installation steps from dep…

fix: Remove Node.js setup and markmap-cli installation steps from dep… #12

Workflow file for this run

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