Skip to content

Commit

Permalink
fix(ci): creat public file un server when building
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihoub2 committed Sep 17, 2024
1 parent 9e03d38 commit 7448cda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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 }}
4 changes: 1 addition & 3 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7448cda

Please sign in to comment.