Files
CoeurUAPam/.github/workflows/deploy.yml
T
Esiah 1c86f35fde
Deploy React Site / build-and-deploy (push) Failing after 2m24s
ci: fetch Git LFS objects during deploy
2026-10-19 19:39:49 +02:00

33 lines
645 B
YAML

name: Deploy React Site
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: coeur-ua-pam
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-node@v4
with:
node-version: "20"
- run: npm ci
- run: npm run build
- name: Verify no LFS pointer files remain
run: |
if grep -rl "git-lfs.github.com/spec/v1" dist/; then
echo "::error::LFS pointers found in dist/ - git-lfs was not fetched."
exit 1
fi
- run: rsync -av --delete dist/ /srv/apps/websites/coeur-ua-pam.org/