Merge branch 'master' of github.com:european-epc-competence-center/ce… #7
This file contains 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: PDF Compilation | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
compile_md: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v4 | |
- name: I4.0 Concept PDF Compilation | |
run: | | |
npm install -g markdown-pdf | |
markdown-pdf -f A4 -s assets/css/main.css CertifiedByGs1-I40.md | |
- name: Save PDF | |
uses: actions/upload-artifact@v4 | |
with: | |
name: CertifiedByGs1-I40 | |
path: CertifiedByGs1-I40.pdf | |
compile_adoc: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
doc: ["CertifiedByGs1-Trust", "CertifiedByGs1-PKI-Demo", "CertifiedByGs1-OnePager", "white-paper"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Trust Model PDF Compilation | |
uses: docker://asciidoctor/docker-asciidoctor:latest | |
with: | |
entrypoint: asciidoctor-pdf | |
args: -a icons=font -a source-highlighter=coderay ${{ matrix.doc }}.adoc | |
- name: Save PDF | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.doc }} | |
path: ${{ matrix.doc }}.pdf | |