Skip to content

Commit 60b5505

Browse files
committed
Update CI
1 parent e368ce5 commit 60b5505

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 13 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
@@ -35,20 +37,20 @@ jobs:
3537
java -jar build/bundle/bob.jar --version
3638
3739
# 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
40+
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 debug resolve build bundle
3941
4042
# Move to the public directory
41-
mv build/bundle/js-web/* build/bundle/public
43+
mv build/bundle/${PLATFORM}/* build/bundle/public
4244
43-
- name: Upload Artifact 📦
44-
uses: actions/upload-artifact@v4
45-
with:
46-
name: bundle
47-
path: build/bundle/public
48-
49-
# - name: Deploy to Pages 🚀
50-
# uses: JamesIves/github-pages-deploy-action@v4
45+
# - name: Upload Artifact 📦
46+
# uses: actions/upload-artifact@v4
5147
# with:
52-
# branch: gh-pages
53-
# folder: build/bundle/public
54-
# if: github.ref == 'refs/heads/main'
48+
# name: bundle
49+
# path: build/bundle/public
50+
51+
- name: Deploy to Pages 🚀
52+
uses: JamesIves/github-pages-deploy-action@v4
53+
with:
54+
branch: gh-pages
55+
folder: build/bundle/public
56+
if: github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)