Skip to content

Commit 1e2c585

Browse files
committed
Update release.yml
1 parent b8c9905 commit 1e2c585

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/release.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,23 @@ jobs:
2020
- name: Set up Node.js
2121
uses: actions/setup-node@v2
2222
with:
23-
node-version: '21.x' # Using Node.js version
23+
node-version: '21.x'
2424

2525
- name: Install dependencies
26-
run: pnpm install --prefix web # Install dependencies in the web folder
26+
run: pnpm install
27+
working-directory: web
2728

2829
- name: Build Svelte project
29-
run: pnpm run build --prefix web # Run build script in the web folder
30+
run: pnpm run build
31+
working-directory: web
3032

3133
- name: Bundle files
3234
run: |
3335
mkdir -p ./temp/mm_radio
34-
mkdir -p ./temp/mm_radio/web/
35-
cp ./{LICENSE,README.md,fxmanifest.lua} ./temp/mm_radio
36+
mkdir -p ./temp/mm_radio/build/
37+
cp ./{LICENSE,README.md,battery.json,fxmanifest.lua} ./temp/mm_radio
3638
cp -r ./{client,server,shared,locales} ./temp/mm_radio
37-
cp -r ./web/build ./temp/mm_radio/web/
39+
cp -r ./build ./temp/mm_radio/build/
3840
cd ./temp && zip -r ../mm_radio.zip ./mm_radio
3941
4042
- name: Create GitHub Release

0 commit comments

Comments
 (0)