Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 36 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
Binary file modified backend/celerybeat-schedule
Binary file not shown.
Loading