1
0
mirror of https://github.com/zumbiepig/MineXLauncher.git synced 2025-06-08 07:54:49 +00:00

add github actions to upload

This commit is contained in:
zumbiepig 2024-09-06 20:23:59 -07:00
parent a0d65ec1f7
commit c1c359e6b9
No known key found for this signature in database
GPG Key ID: 17C891BE28B953DE
2 changed files with 25 additions and 2 deletions

23
.github/workflows/upload-zip.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: Upload zip
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build
run: bun run build
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: minexlauncher
path: public/
if-no-files-found: error
compression-level: 9

View File

@ -5,8 +5,8 @@
"scripts": {
"start": "NODE_ENV=production bun run ./server.ts",
"dev": "NODE_ENV=development DEBUG=minexlauncher:* bun --hot run ./server.ts",
"lint": "eslint ./src/ && tsc",
"lint:fix": "eslint --fix ./src/ && tsc",
"lint": "eslint ./src/resources/scripts/ && tsc",
"lint:fix": "eslint --fix ./src/resources/scripts/ && tsc",
"build": "NODE_ENV=production bun run ./build.ts",
"build:dev": "NODE_ENV=development bun run ./build.ts"
},