Fix LFS
This commit is contained in:
parent
8c679fcf96
commit
7656f24544
1 changed files with 15 additions and 5 deletions
|
|
@ -10,13 +10,23 @@ jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
|
# The product-demo videos and their poster JPGs live in Git LFS (see
|
||||||
|
# .gitattributes). The checkout below needs `lfs: true` to smudge the real
|
||||||
|
# binaries, but the runner image ships without the git-lfs executable, so
|
||||||
|
# install it first — otherwise checkout fails with "Unable to locate
|
||||||
|
# executable file: git-lfs".
|
||||||
|
- name: Install Git LFS
|
||||||
|
run: |
|
||||||
|
if command -v sudo >/dev/null 2>&1; then SUDO=sudo; else SUDO=; fi
|
||||||
|
$SUDO apt-get update
|
||||||
|
$SUDO apt-get install -y --no-install-recommends git-lfs
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
# The product-demo videos and their poster JPGs live in Git LFS
|
# Without lfs, checkout writes ~130-byte LFS pointer text files, the
|
||||||
# (see .gitattributes). Without this, checkout writes ~130-byte LFS
|
# Docker build copies those stubs into frontend/dist/video/*, and the
|
||||||
# pointer text files, the Docker build copies those stubs into
|
# server serves text as video/mp4 — so the videos never load in
|
||||||
# frontend/dist/video/*, and the server serves text as video/mp4 —
|
# production. Smudge the real binaries instead.
|
||||||
# so the videos never load in production. Smudge the real binaries.
|
|
||||||
with:
|
with:
|
||||||
lfs: true
|
lfs: true
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue