Skip to content

Commit 31c660a

Browse files
committed
Update CI
1 parent e811e9b commit 31c660a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
- name: Build 🔧
2424
env:
2525
DEFOLD_BOB_SHA1: ${{ secrets.DEFOLD_BOB_SHA1 }}
26+
PLATFORM: js-web
27+
ARCHITECTURES: wasm-web
2628
run: |
2729
lsb_release -a
2830
@@ -34,11 +36,14 @@ jobs:
3436
if [ "${BOB_LOCAL_SHA1}" != "${BOB_SHA1}" ]; then wget --progress=dot:mega -O build/bundle/bob.jar "https://d.defold.com/archive/${BOB_SHA1}/bob/bob.jar"; fi
3537
java -jar build/bundle/bob.jar --version
3638
39+
# Get game.project title
40+
TITLE=$(awk -F "=" '/^title/ {gsub(/[ \r\n\t]/, "", $2); print $2}' game.project)
41+
3742
# Build the project
38-
java -jar build/bundle/bob.jar --email a@b.com --auth 123 --texture-compression true --bundle-output build/bundle/js-web --platform js-web --architectures wasm-web --archive --variant debug resolve build bundle
43+
java -jar build/bundle/bob.jar --email a@b.com --auth 123 --texture-compression true --bundle-output build/bundle/${PLATFORM} --platform ${PLATFORM} --architectures ${ARCHITECTURES} --archive --variant release resolve build bundle
3944
4045
# Move to the public directory
41-
mv build/bundle/js-web/* build/bundle/public
46+
mv "build/bundle/${PLATFORM}/${TITLE}" build/bundle/public
4247
4348
- name: Upload Artifact 📦
4449
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)