Skip to content

only epub

only epub #6

Workflow file for this run

name: CI (Self-Test for ditac-epub-action)
on:
push:
branches: [ main, master ]
pull_request:
workflow_dispatch:
jobs:
build-epub:
name: Build and Validate EPUB
runs-on: ubuntu-latest
steps:
# 1️⃣ Check out the repository (includes action + example content)
- name: Checkout
uses: actions/checkout@v4
# 2️⃣ Run the action locally using the example DITA map
- name: Run ditac EPUB Action
uses: ./
with:
map: example/document.ditamap
output: out/example.epub
resources-dir: example/res
format: epub3
validate-with-epubcheck: 'true'
# 3️⃣ Upload result as artifact for inspection
- name: Upload EPUB artifact
uses: actions/upload-artifact@v4
with:
name: example-epub
path: out/example.epub
# 4️⃣ Optional: show dir tree for debugging
- name: List output files
run: |
echo "EPUB build complete. Output directory contents:"
tree out || ls -R out