mirror of
https://gitee.com/XmacsLabs/planet.git
synced 2025-09-05 22:23:52 +00:00
Convert jingkaimori doc to html for CICD (#35)
This commit is contained in:
parent
b4aeea5b1a
commit
debfddd081
2 changed files with 100 additions and 0 deletions
39
.github/workflows/cd-convert-debian-bookworm.yml
vendored
Normal file
39
.github/workflows/cd-convert-debian-bookworm.yml
vendored
Normal file
|
@ -0,0 +1,39 @@
|
|||
name: CI/CD for Converting tm format to html
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
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: |
|
||||
wget https://github.com/XmacsLabs/mogan/releases/download/v1.2.8-rc1/mogan-research-v1.2.8-rc1-debian12.deb -O /tmp/mogan-research.deb
|
||||
DEBIAN_FRONTEND=noninteractive apt install -y /tmp/mogan-research.deb
|
||||
|
||||
- name: convert document to html format
|
||||
run: |
|
||||
/usr/bin/MoganResearch -headless -b CICD/tm2html_CICD.scm -x "(tm2html_CICD)" -q
|
||||
|
||||
# Deploy to local repo
|
||||
- name: Deploy
|
||||
uses: s0/git-publish-subdir-action@develop
|
||||
env:
|
||||
REPO: self
|
||||
BRANCH: gh-pages
|
||||
FOLDER: CICD/html
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Add table
Add a link
Reference in a new issue