From 88330c2ada8fcf6c5fbc7e777c5d9ee880010fec Mon Sep 17 00:00:00 2001 From: bip production <119274726+bipproduction@users.noreply.github.com> Date: Fri, 21 Feb 2025 15:35:34 +0800 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 39fd3a1c..3039f6ae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,17 +49,21 @@ jobs: echo "NEXT_PUBLIC_WIBU_URL=${{ secrets.NEXT_PUBLIC_WIBU_URL }}" >> .env echo "WIBU_UPLOAD_DIR=${{ secrets.WIBU_UPLOAD_DIR }}" >> .env + # create log file + - name: Create log file + run: touch build.txt + # Migrasi database menggunakan Prisma - name: Apply Prisma schema to database - run: bun prisma db push + run: bun prisma db push >> build.txt 2>&1 # Seed database (opsional) - name: Seed database - run: bun prisma db seed + run: bun prisma db seed >> build.txt 2>&1 # Build project - name: Build project - run: bun run build + run: bun run build >> build.txt 2>&1 # Send email with GitHub Actions logs - name: Send email with logs @@ -77,8 +81,7 @@ jobs: Branch: ${{ github.ref }} Commit: ${{ github.sha }} - Please find the logs for this run at the following link: - https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/logs - https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/logs to: kurosakiblackangel@gmail.com from: bip.production.js@gmail.com + attachments: | + build.txt