Skip to content

Update adb based on DanTheMan ig, I didn't really check #4

Update adb based on DanTheMan ig, I didn't really check

Update adb based on DanTheMan ig, I didn't really check #4

Workflow file for this run

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/[email protected]
- 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/[email protected]
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}}