Skip to content

Commit 6ca2e7a

Browse files
authored
feat: Add support for git-lfs (#20)
Add an input variable to turn on git-lfs during checkout in case the documentation contains large files that are loaded via git-lfs.
1 parent 029e178 commit 6ca2e7a

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/pages-generate-from-docs-dir.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ on: # yamllint disable-line rule:truthy
1919
required: false
2020
type: string
2121
description: "Optional but required if from2 is provided: Target directly under 'docs/' to copy into"
22+
lfs-checkout:
23+
required: false
24+
type: boolean
25+
default: false
26+
description: "Optional boolean to turn on git-lfs during checkout"
2227

2328
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
2429
#permissions:
@@ -42,6 +47,8 @@ jobs:
4247
steps:
4348
- name: Checkout
4449
uses: actions/checkout@v5
50+
with:
51+
lfs: ${{ inputs.lfs-checkout }}
4552

4653
- name: Generate Pages content
4754
run: |

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ Check the repository workflow `Actions`. There should be an action publishing th
9292
itself demonstrates how it works by the following usage. Another common combination example is
9393
`from1: src/main/resources/schemas` and `to1: schemas` and the `.md` file using links to
9494
`schemas/some-filename.xsd`.
95+
- If your documentation uses git-lfs, e.g. to provide PDFs or other binary files, you need to switch
96+
on git-lfs during checkout using `lfs-checkout: true`.
9597

9698
### Example
9799

0 commit comments

Comments
 (0)