Files
Esiah-s-Universe/.github/workflows/deploy.yml
T
Gitea ActionsandEsiah 2297294f6c
Deploy React Site / build-and-deploy (push) Successful in 37s
Add PR auto-open workflow (#1)
PR automatique de chore/update-deploy-for-cohaise vers main.

---------

Co-authored-by: xEsiah <[email protected]>
Reviewed-on: #1
Reviewed-by: Esiah <[email protected]>
Co-authored-by: Gitea Actions <-[email protected]>
2026-10-20 12:27:59 +00:00

39 lines
1016 B
YAML

name: Deploy React Site
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: esiah-s-universe
steps:
- uses: actions/checkout@v4
- name: Fetch Git LFS objects
run: |
git lfs install --local
AUTH="$(git config --local "http.${{ github.server_url }}/.extraheader")"
git config --local --unset "http.${{ github.server_url }}/.extraheader"
git config --local "http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader" "$AUTH"
git lfs pull
- 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/esiah.dev/