This GitHub action is used in Limbic Access to generate a new PDF for each release.
In a github actions file you can add this action using this configuration
- name: Publish new IFU PDF
uses: LimbicAI/publish-pdf-version-action@main
with:
region: <s3 region>
accessKeyId: <aws key with read and write access to the bucket>
secretAccessKey: <aws secret with read and write access to the bucket>
pdfName: <new pdf name to save in versions folder>
pdfTemplate: <the name of the html template used for the pdf>
baseUrl: <public url>
bucket: <s3 bucket>
basePdf: <pdf to be appended>
latestPdfKey: <pdf name to save in latest folder (should not change as other projects depend on the static url)>
udi: <udi without version>
manufacturingDate: <project manufacturing date>
ref: <project name as shown on documents (Limbic Access / Limbic Care)>
bucket
- S3 bucket where the pdfs are stored.
region
- S3 region the bucket belongs to
accessKeyId
- aws access key with read and write access
secretAccessKey
- aws secret with read and write access
baseUrl
- Public domain where the PDFs will be available (the domain of the bucket).
basePdf
- Name of the PDF file that will have the versions front page prepend to, this is relative to s3://bucket/assets/
.
pdfName
- Name of the new versioned pdf, expected to be in the format M.m.p-dd-mm-yyyy
where M
, m
, p
are major, minor and patch version numbers according to semver, and dd-mm-yyyy
is the release date.
pdfTemplate
- Name of the pdf template as it is in AWS.
latestPdfKey
- the key where to save the latest pdf, this is relative to s3://bucket/latest/
udi
- UDI without version
manufacturingDate
- Manufacturing date shown in documents
ref
- REF shown in document (Limbic Access / Limbic Care)