Skip to content

Commit

Permalink
Update CI to upload build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
aglitchman authored Jun 19, 2024
1 parent 301dcd4 commit 0458075
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,24 @@ name: Build demo.zip
on:
workflow_dispatch:
push:
branches:
- master
tags:
- 0.*
- 1.*
pull_request:
branches:
- master

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Java ♨️
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
Expand All @@ -41,7 +46,14 @@ jobs:
java -jar build/bundle/bob.jar --email [email protected] --auth 12345 --texture-compression true --bundle-output build/bundle/js-web --platform js-web --archive --variant release resolve build bundle
(cd build/bundle/js-web/* && zip -r ../../public/demo_no-sw_no-native-cache.zip .)
- name: Upload Result
uses: actions/upload-artifact@v4
with:
name: demo.zip
path: build/bundle/public/demo_no-sw_no-native-cache.zip

- name: Deploy to Pages 🚀
if: github.ref == 'refs/heads/master'
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
Expand Down

0 comments on commit 0458075

Please sign in to comment.