Skip to content

Commit 341c8b7

Browse files
Merge pull request #88 from AltyFox/main
Add a section to the action to build the frontend of the new UI, so action builds... can load the new UI
2 parents 20f2903 + 6f4a5ca commit 341c8b7

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: .NET
44
on:
55
workflow_dispatch:
66
push:
7-
branches: [ main,adb ]
7+
branches: [ main, adb ]
88

99
jobs:
1010
build:
@@ -16,8 +16,7 @@ jobs:
1616
with:
1717
path: 'QAVS'
1818
submodules: recursive
19-
20-
19+
2120
- name: Cache NuGet packages
2221
uses: actions/cache@v3
2322
with:
@@ -30,27 +29,38 @@ jobs:
3029
uses: actions/setup-dotnet@v3
3130
with:
3231
dotnet-version: 7.0.x
32+
3333
- uses: actions/setup-java@v1
3434
with:
3535
java-version: '11'
3636

37-
3837
- name: Add msbuild to PATH
3938
uses: microsoft/[email protected]
4039

4140
- name: Restore dependencies
4241
working-directory: 'QAVS'
4342
run: nuget restore
4443

44+
- name: Install Node.js
45+
uses: actions/setup-node@v3
46+
with:
47+
node-version: '18'
48+
49+
- name: Install dependencies and build frontend
50+
working-directory: 'QAVS\frontend'
51+
run: |
52+
npm install
53+
npm run build
54+
4555
- name: Build
4656
working-directory: 'QAVS\QuestAppVersionSwitcher'
47-
run: msbuild QuestAppVersionSwitcher.csproj /t:PackageForAndroid /t:SignAndroidPackage /p:Configuration=Release
57+
run: msbuild QuestAppVersionSwitcher.csproj /t:PackageForAndroid /t:SignAndroidPackage /p:Configuration=Release
4858

4959
- uses: r0adkll/[email protected]
5060
name: Sign app APK
5161
id: sign_app
5262
with:
53-
releaseDirectory: QAVS/QuestAppVersionSwitcher/bin/Release
63+
releaseDirectory: QAVS\QuestAppVersionSwitcher\bin\Release
5464
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
5565
alias: ${{ secrets.ALIAS }}
5666
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}

0 commit comments

Comments
 (0)