Skip to content

Commit 7c154a0

Browse files
committed
Merge branch 'refs/heads/master' into automotive
2 parents aff17c2 + 03dc534 commit 7c154a0

File tree

1 file changed

+36
-8
lines changed

1 file changed

+36
-8
lines changed

.github/workflows/build.yaml

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
platform: [ android, ios, tv, desktop, web]
14+
platform: [ android, ios, tv, desktop, web, automotive ]
1515

1616
steps:
1717
- name: Checkout repository
@@ -58,6 +58,18 @@ jobs:
5858
name: tv-apk
5959
path: tvApp/build/outputs/apk/debug/tvApp-debug.apk
6060

61+
# Build Automotive APK
62+
- name: Build Automotive App
63+
if: matrix.platform == 'automotive'
64+
run: ./gradlew :automotiveApp:assembleDebug
65+
66+
- name: Upload Automotive APK
67+
if: matrix.platform == 'automotive'
68+
uses: actions/upload-artifact@v4
69+
with:
70+
name: automotive-apk
71+
path: automotiveApp/build/outputs/apk/debug/automotiveApp-debug.apk
72+
6173
# Build Desktop App
6274
- name: Build Desktop
6375
if: matrix.platform == 'desktop'
@@ -75,6 +87,13 @@ jobs:
7587
if: matrix.platform == 'web'
7688
run: ./gradlew :webApp:jsBrowserProductionWebpack
7789

90+
- name: Upload WebApp
91+
if: matrix.platform == 'web'
92+
uses: actions/upload-artifact@v4
93+
with:
94+
name: web-dist
95+
path: webApp/build/distributions/
96+
7897
release:
7998
name: Create GitHub Release
8099
runs-on: ubuntu-latest
@@ -96,6 +115,12 @@ jobs:
96115
name: tv-apk
97116
path: ./artifacts/tv
98117

118+
- name: Download Automotive APK
119+
uses: actions/download-artifact@v4
120+
with:
121+
name: automotive-apk
122+
path: ./artifacts/automotive
123+
99124
- name: Download Desktop App
100125
uses: actions/download-artifact@v4
101126
with:
@@ -136,6 +161,16 @@ jobs:
136161
asset_name: tvApp-debug.apk
137162
asset_content_type: application/vnd.android.package-archive
138163

164+
- name: Upload Automotive APK
165+
uses: actions/upload-release-asset@v1
166+
env:
167+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
168+
with:
169+
upload_url: ${{ steps.create_release.outputs.upload_url }}
170+
asset_path: ./artifacts/automotive/automotiveApp-debug.apk
171+
asset_name: automotiveApp-debug.apk
172+
asset_content_type: application/vnd.android.package-archive
173+
139174
- name: Upload Desktop App Zip
140175
uses: actions/upload-release-asset@v1
141176
env:
@@ -145,10 +180,3 @@ jobs:
145180
asset_path: ./artifacts/desktopApp.zip
146181
asset_name: desktopApp.zip
147182
asset_content_type: application/zip
148-
149-
- name: Upload Web Distribution
150-
if: matrix.platform == 'web'
151-
uses: actions/upload-artifact@v4
152-
with:
153-
name: web-dist
154-
path: webApp/build/distributions/

0 commit comments

Comments
 (0)