-
Notifications
You must be signed in to change notification settings - Fork 12
75 lines (61 loc) · 1.94 KB
/
main.yml
File metadata and controls
75 lines (61 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: .NET
# Run on every push on main branch
on:
workflow_dispatch:
push:
branches: [ main, adb ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
path: 'QAVS'
submodules: recursive
- name: Cache NuGet packages
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('QAVS/**/*.csproj') }}-${{ hashFiles('ComputerUtils/**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- uses: actions/setup-java@v1
with:
java-version: '11'
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
- name: Restore dependencies
working-directory: 'QAVS'
run: nuget restore
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies and build frontend
working-directory: 'QAVS\frontend'
run: |
npm install
npm run build
- name: Build
working-directory: 'QAVS\QuestAppVersionSwitcher'
run: msbuild QuestAppVersionSwitcher.csproj /t:PackageForAndroid /t:SignAndroidPackage /p:Configuration=Release
- uses: r0adkll/sign-android-release@v1.0.4
name: Sign app APK
id: sign_app
with:
releaseDirectory: QAVS\QuestAppVersionSwitcher\bin\Release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
env:
# override default build-tools version (29.0.3) -- optional
BUILD_TOOLS_VERSION: "33.0.2"
# Example use of `signedReleaseFile` output -- not needed
- uses: actions/upload-artifact@v4
with:
name: Signed app bundle
path: ${{steps.sign_app.outputs.signedReleaseFile}}