proper unzip #5
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: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| # EPUB 3 | |
| - name: Build EPUB3 | |
| uses: ./ | |
| with: | |
| map: example/document.ditamap | |
| output: out/example.epub | |
| format: epub3 | |
| resources-dir: example/res | |
| validate-with-epubcheck: 'true' | |
| - name: Upload EPUB artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: example-epub | |
| path: out/example.epub | |
| # PDF (forces plus-fop bundle automatically) | |
| - name: Build PDF | |
| uses: ./ | |
| with: | |
| map: example/document.ditamap | |
| output: out/example.pdf | |
| format: pdf | |
| # prefer-plus-fop stays 'auto' (default), which selects plus-fop for PDF | |
| - name: Upload PDF artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: example-pdf | |
| path: out/example.pdf | |
| - name: List outputs | |
| run: | | |
| echo "Final outputs:" | |
| ls -l out || true |