2024-08-01 17:35:13 +08:00
|
|
|
name: CD for Converting tm format to html
|
2024-07-31 20:27:39 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
container: debian:bookworm
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- name: Install dependencies
|
|
|
|
run: apt-get update && apt-get install -y wget git
|
|
|
|
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 1
|
|
|
|
|
|
|
|
- name: download release from mogan research repository
|
|
|
|
run: |
|
2024-08-01 17:35:13 +08:00
|
|
|
wget https://github.com/XmacsLabs/mogan/releases/download/v1.2.8-rc2/mogan-research-v1.2.8-rc2-debian12.deb -O /tmp/mogan-research.deb
|
2024-07-31 20:27:39 +08:00
|
|
|
DEBIAN_FRONTEND=noninteractive apt install -y /tmp/mogan-research.deb
|
|
|
|
|
|
|
|
- name: convert document to html format
|
|
|
|
run: |
|
2024-08-01 17:35:13 +08:00
|
|
|
/usr/bin/MoganResearch -headless -b CD/tm2html_CD.scm -x "(tm2html_CD)" -q
|
2024-07-31 20:27:39 +08:00
|
|
|
|
|
|
|
# Deploy to local repo
|
|
|
|
- name: Deploy
|
|
|
|
uses: s0/git-publish-subdir-action@develop
|
|
|
|
env:
|
|
|
|
REPO: self
|
|
|
|
BRANCH: gh-pages
|
2024-08-01 17:35:13 +08:00
|
|
|
FOLDER: CD/html/planet
|
2024-07-31 20:27:39 +08:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|