feat: update workflows

This commit is contained in:
TrèsAbhi committed 2024-07-21 20:01:16 -05:00
1 parent 377a00aaf1
commit 2f3e1d7ae4
4 files changed
+5 -9

No files matched your search

+3 -6
View File
@@ -18,10 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Use node
uses: actions/setup-node@v4
with:
node-version: 18
- uses: oven-sh/setup-bun@v1
- name: Download release assets
run: |
@@ -30,7 +27,7 @@ jobs:
| cut -d : -f 2,3 \
| tr -d \")
curl -L -o bot.zip $DOWNLOAD_URL
unzip bot.zip
unzip bot.zip -d dist/bot
- name: Run bot
run: NODE_ENV=production GH_TOKEN=${{ secrets.GH_TOKEN }} DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} DATABASE_URL=${{ secrets.DATABASE_URL }} node --enable-source-maps index.cjs
run: NODE_ENV=production GH_TOKEN=${{ secrets.GH_TOKEN }} DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} DATABASE_URL=${{ secrets.DATABASE_URL }} bun start:bot
+1 -1
View File
@@ -22,7 +22,7 @@ jobs:
run: bun prisma generate
- name: Build
run: bun build:bot --production
run: bun build:bot
- name: Archive build
uses: actions/upload-artifact@v4
BIN
View File
Binary file not shown.
+1 -2
View File
@@ -13,7 +13,7 @@
"build:sitemap": "bun scripts/sitemap.ts",
"build:docs": "vitepress build docs",
"build:ratingleaderboard": "bun --script scripts/buildRatingLeaderboard.ts",
"dev:bot": "vite-node --script scripts/build && yarn start:bot",
"dev:bot": "bun build:bot && bun start:bot",
"dev:docs": "vitepress dev docs",
"dev:website": "next dev",
"start:bot": "bun dist/bot/index.js",
@@ -75,7 +75,6 @@
"sharp": "^0.33.4",
"three": "0.159.0",
"three-stdlib": "^2.30.4",
"vite-node": "^0.34.7",
"vitepress": "^1.3.0",
"vitepress-plugin-auto-sidebar": "^1.2.0",
"yaml": "^2.4.5",