Fix CI
Some checks failed
CI / Build and Deploy (push) Failing after 19s

This commit is contained in:
2026-05-05 19:38:40 +02:00
parent 375ae8a424
commit 24276f5ad8

View File

@@ -19,12 +19,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Load local runtime env
run: |
set -a
. /opt/RFP_Finanzen/.env
set +a
- name: Show environment
run: |
whoami
@@ -33,19 +27,7 @@ jobs:
node -v
npm -v
- name: Clean old build artifacts
run: rm -rf .next
- name: Install dependencies
run: npm install
- name: Prisma generate
run: npx prisma generate
- name: Build app
run: npm run build
- name: Deploy to target directory
- name: Deploy source to target directory
if: gitea.event_name == 'push'
run: |
rsync -av --delete \
@@ -53,23 +35,34 @@ jobs:
--exclude ".github" \
--exclude ".env" \
--exclude "node_modules" \
--exclude ".next" \
./ /opt/RFP_Finanzen/
- name: Install production dependencies on target
- name: Install dependencies
if: gitea.event_name == 'push'
run: |
cd /opt/RFP_Finanzen
npm install
- name: Run Prisma migrations on target
- name: Prisma generate
if: gitea.event_name == 'push'
run: |
cd /opt/RFP_Finanzen
npx prisma generate
- name: Run Prisma migrations
if: gitea.event_name == 'push'
run: |
cd /opt/RFP_Finanzen
set -a
. ./.env
set +a
npx prisma migrate deploy
- name: Build app
if: gitea.event_name == 'push'
run: |
cd /opt/RFP_Finanzen
rm -rf .next
npm run build
- name: Restart service
if: gitea.event_name == 'push'
run: sudo systemctl restart finanzen-app