ci: fetch Git LFS objects during deploy
Deploy React Site / build-and-deploy (push) Failing after 2m24s
Deploy React Site / build-and-deploy (push) Failing after 2m24s
This commit is contained in:
@@ -11,6 +11,8 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
lfs: true
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
@@ -20,4 +22,11 @@ jobs:
|
|||||||
|
|
||||||
- run: npm run build
|
- 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/
|
- run: rsync -av --delete dist/ /srv/apps/websites/coeur-ua-pam.org/
|
||||||
|
|||||||
Reference in New Issue
Block a user