diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c98dcfcf..67c41879 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,7 +11,7 @@ env: NODE_VERSION: '22.x' jobs: - build-and-deploy: + deploy: if: github.event.pull_request.merged == true runs-on: ubuntu-latest @@ -76,10 +76,44 @@ jobs: docker compose up --build -d --no-deps softwareai_frontend softwareai_api " + build-frontend-electron: + name: "🔨 Build Frontend (Vite + React)" + runs-on: ubuntu-latest + if: github.event.pull_request.merged == true + outputs: + dist-path: ${{ steps.build.outputs.dist-path }} + steps: + - name: "Checkout code" + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: "Setup Node.js" + uses: actions/setup-node@v3 + with: + node-version: ${{ env.NODE_VERSION }} + + - name: "Install dependencies" + working-directory: frontend/electron + run: npm ci + + - name: "Build Vite" + working-directory: frontend/electron + id: build + run: | + npm run build + echo "dist-path=$(pwd)/dist" >> $GITHUB_OUTPUT + + - name: "Upload dist as artifact" + uses: actions/upload-artifact@v4 + with: + name: vite-dist + path: frontend/electron/dist + build-electron: name: "⚡ Build Electron App" runs-on: windows-latest - needs: build-and-deploy + needs: build-frontend-electron steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 diff --git a/backend/celerybeat-schedule b/backend/celerybeat-schedule index a595d8d7..9820daa1 100644 Binary files a/backend/celerybeat-schedule and b/backend/celerybeat-schedule differ