Running the DITA-OT on Github Actions #4139
-
I would like to use Github Actions to test DITA-OT plugins, create PDFs, and so forth. I have read Running the dita command from a GitHub Action, but think the custom actions don't work in my environment. We have a private repository, which keeps a company specific version of the Now I am in the job of a DITA-OT plugin overriding
I have no idea why. Can you help me with this problem, please? I paste the job file below. name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
env:
DITA_OT_VERSION: 3.6.1
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: ZIP plugin
run: zip -qq -r com.dometic.dita-ot-pdf.zip .
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Checkout DITA-OT 🍌
uses: actions/checkout@v3
with:
repository: onedometic/dita-ot
path: ./dita-ot
token: ${{ secrets.GH_PAT }}
- name: Grant execute permissions for dita
run: chmod +x dita-ot/bin/dita
- name: Grant execute permissions for ant
run: chmod +x dita-ot/bin/ant
- name: DITA-OT Version
run: dita-ot/bin/dita --version
- name: Remove plugins ☣
run: |
rm -rf dita-ot/plugins/com.oxygenxml.common
rm -rf dita-ot/plugins/com.oxygenxml.dita.metrics.report
rm -rf dita-ot/plugins/com.oxygenxml.dost.patches
rm -rf dita-ot/plugins/com.oxygenxml.editlink
rm -rf dita-ot/plugins/com.oxygenxml.export.map
rm -rf dita-ot/plugins/com.oxygenxml.highlight
rm -rf dita-ot/plugins/com.oxygenxml.html.embed
rm -rf dita-ot/plugins/com.oxygenxml.image.float
rm -rf dita-ot/plugins/com.oxygenxml.media
rm -rf dita-ot/plugins/com.oxygenxml.merged
rm -rf dita-ot/plugins/com.oxygenxml.pdf.css
rm -rf dita-ot/plugins/com.oxygenxml.pdf.custom
rm -rf dita-ot/plugins/com.oxygenxml.pdf.review
rm -rf dita-ot/plugins/com.oxygenxml.webhelp.common
rm -rf dita-ot/plugins/com.oxygenxml.webhelp.responsive
dita-ot/bin/dita install |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
So you are starting from Oxygen's Publishing engine based on the DITA OT + custom plugin and you are taking things out. Ideally you could have just started from a stock DITA OT 3.6.1. |
Beta Was this translation helpful? Give feedback.
So you are starting from Oxygen's Publishing engine based on the DITA OT + custom plugin and you are taking things out. Ideally you could have just started from a stock DITA OT 3.6.1.
The "DITA-OT/bin/dita" script is modified in the Oxygen's bundled DITA OT (you can compare it with the same script from DITA OT 3.6.1), it delegates to a main class named "MainWithCPWildcarExpansion" which is from the "com.oxygenxml.dost.patches" plugin folder which you have deleted.