fix(ci): remove duplicate deploy job that raced production Deploy
CI / check (push) Successful in 21s
Deploy / release (push) Skipped
Deploy / deploy (push) Successful in 58s

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
SimoandCursor committed 2026-07-30 20:50:05 +02:00
1 parent 98613af875
commit bfbc02c75d
2 files changed
+25 -31

No files matched your search

-31
View File
@@ -45,34 +45,3 @@ jobs:
pnpm typecheck
pnpm test
echo "--- CI checks passed ---"
deploy:
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
runs-on: shell
needs: check
steps:
- name: Build and deploy
run: |
set -e
WORK="$(mktemp -d /var/tmp/epicnext-deploy.XXXXXX)"
cleanup() { rm -rf "${WORK}"; }
trap cleanup EXIT
echo "--- Deploy (${WORK}) ---"
git clone --depth 50 \
/docker/gitea/gitea/git/repositories/remco/epicnext-cms.git \
"${WORK}"
cd "${WORK}"
REF="${{ gitea.sha }}"
git fetch --depth 50 origin "${REF}"
git checkout -f "${REF}"
export NODE_ENV=production
export SKIP_ENV_VALIDATION=1
pnpm install --frozen-lockfile
pnpm prisma:generate
pnpm build
pm2 restart next --update-env
pm2 save
echo "--- Deploy complete ---"