feat: add deploy step in release workflow (build + PM2 restart) and set coverage thresholds to 100
CI / check (push) Failing after 22s
Deploy / release (push) Skipped
CI / deploy (push) Skipped
Deploy / deploy (push) Failing after 20s

This commit is contained in:
openhands committed 2026-07-30 19:11:58 +02:00
1 parent e07da3d052
commit 4b2d893905
2 files changed
+27 -4

No files matched your search

+23
View File
@@ -10,6 +10,29 @@ jobs:
if: startsWith(gitea.ref_name, 'v')
runs-on: shell
steps:
- name: Build and deploy
env:
VERSION: ${{ gitea.ref_name }}
run: |
set -e
exec 2>&1
WORK="$(mktemp -d /var/tmp/epicnext-deploy.XXXXXX)"
cleanup() { rm -rf "${WORK}"; }
trap cleanup EXIT
echo "=== Deploying ${VERSION} ==="
git clone --depth 50 \
/docker/gitea/gitea/git/repositories/remco/epicnext-cms.git \
"${WORK}"
cd "${WORK}"
git checkout "${VERSION}"
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 ==="
- name: Create Release
env:
VERSION: ${{ gitea.ref_name }}