use shell execute to false #267
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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/[email protected] | |
| - 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/[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@v4 | |
| with: | |
| name: Signed app bundle | |
| path: ${{steps.sign_app.outputs.signedReleaseFile}} |