-
Notifications
You must be signed in to change notification settings - Fork 12
88 lines (73 loc) · 2.39 KB
/
push.yml
File metadata and controls
88 lines (73 loc) · 2.39 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
76
77
78
79
80
81
82
83
84
85
86
87
88
name: .NET
# Run on every push on main branch
on:
push:
branches: [ main ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
path: 'QAVS'
- uses: actions/checkout@v3
with:
repository: 'ComputerElite/ComputerUtils'
path: 'ComputerUtils\'
- name: Cache NodeJS packages
uses: actions/cache@v3
with:
path: QAVS/frontend/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('QAVS/frontend/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- 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
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
- name: Restore dependencies
working-directory: 'QAVS'
run: nuget restore
# Setup and build react app
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
cache-dependency-path: QAVS/frontend/yarn.lock
# Install and cache dependencies
- name: Install frontend dependencies
working-directory: 'QAVS/frontend/'
run: yarn install
# Build the frontend
- name: Build frontend
working-directory: 'QAVS/frontend/'
run: yarn 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@v2
with:
name: Signed app bundle
path: ${{steps.sign_app.outputs.signedReleaseFile}}