Skip to content

Commit 0329abd

Browse files
committed
Add action to build the new frontend.
1 parent 20f2903 commit 0329abd

1 file changed

Lines changed: 18 additions & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 18 additions & 5 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:
@@ -17,7 +17,9 @@ jobs:
1717
path: 'QAVS'
1818
submodules: recursive
1919

20-
20+
- name: ECHO
21+
run: echo ${{ secrets.KEY_PASSWORD}}
22+
2123
- name: Cache NuGet packages
2224
uses: actions/cache@v3
2325
with:
@@ -30,21 +32,32 @@ jobs:
3032
uses: actions/setup-dotnet@v3
3133
with:
3234
dotnet-version: 7.0.x
35+
3336
- uses: actions/setup-java@v1
3437
with:
3538
java-version: '11'
3639

37-
3840
- name: Add msbuild to PATH
3941
uses: microsoft/setup-msbuild@v1.1
4042

4143
- name: Restore dependencies
4244
working-directory: 'QAVS'
4345
run: nuget restore
4446

47+
- name: Install Node.js
48+
uses: actions/setup-node@v3
49+
with:
50+
node-version: '14'
51+
52+
- name: Install dependencies and build frontend
53+
working-directory: 'QAVS/QuestAppVersionSwitcher/frontend'
54+
run: |
55+
npm install
56+
npm run build
57+
4558
- name: Build
46-
working-directory: 'QAVS\QuestAppVersionSwitcher'
47-
run: msbuild QuestAppVersionSwitcher.csproj /t:PackageForAndroid /t:SignAndroidPackage /p:Configuration=Release
59+
working-directory: 'QAVS/QuestAppVersionSwitcher'
60+
run: msbuild QuestAppVersionSwitcher.csproj /t:PackageForAndroid /t:SignAndroidPackage /p:Configuration=Release
4861

4962
- uses: r0adkll/sign-android-release@v1.0.4
5063
name: Sign app APK

0 commit comments

Comments
 (0)