diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 404ebe9..cf3601f 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -23,7 +23,8 @@ jobs: - name: Build client (Vite.js) run: | npm i --prefix client - npm run build --prefix client --emptyOutDir --outDir '../server/public' + npm run build --prefix client + cp -r client/dist/* server/public/ - name: Build server (Bun) run: | @@ -66,5 +67,5 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN}} mattermost_webhook_url: ${{ secrets.MATTERMOST_WEBHOOK_URL }} - mattermost_channel: ${{ env.MM_NOTIFICATION_CHANNEL}} + mattermost_channel: ${{ env.MM_NOTIFICATION_CHANNEL }} deployment_url: ${{ env.DEPLOYMENT_URL }} diff --git a/server/package.json b/server/package.json index b8a0411..efb4ac4 100644 --- a/server/package.json +++ b/server/package.json @@ -3,9 +3,7 @@ "version": "1.0.50", "scripts": { "dev": "bun run --watch index.ts", - "build": "bun build src/index.ts", - "start": "bun run index.ts", - "test": "bun test" + "start": "bun run index.ts" }, "dependencies": { "@elysiajs/cors": "^1.1.0",