cleaning ditac #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |