-
Notifications
You must be signed in to change notification settings - Fork 2
78 lines (67 loc) · 2.19 KB
/
build.yml
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
name: Build
on:
push:
branches: [ main, beta ]
paths-ignore:
- '**/*.md'
- '**/*.gitignore'
- '**/*.gitattributes'
pull_request:
types:
- closed
branches: [ main, beta ]
workflow_dispatch:
permissions:
contents: read
env:
DOTNET_NOLOGO: true # Disable the .NET logo
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true # Disable the .NET first time experience
DOTNET_CLI_TELEMETRY_OPTOUT: true # Disable sending .NET CLI telemetry
jobs:
build-android:
runs-on: windows-2022
name: Android Build
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '5.x'
preferLatestVersion: true
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/[email protected]
with:
useConfigFile: true
- name: Setup .NET 7
uses: actions/[email protected]
with:
dotnet-version: 7.0.403
include-prerelease: false
- name: Setup Java JDK
uses: actions/[email protected]
with:
distribution: microsoft
java-version: '11'
- name: Install MAUI Workloads
run: |
dotnet workload install android --ignore-failed-sources
dotnet workload install maui --ignore-failed-sources
- name: Restore Dependencies
run: dotnet restore RosyCrow.csproj
- name: Build
run: dotnet build RosyCrow.csproj -c Release -f net7.0-android33.0 --no-restore -p:ApplicationDisplayVersion=${{ steps.gitversion.outputs.semVer }}
env:
ROSYCROW_SIGNING_KEY_PASSWORD: ${{ secrets.ROSYCROW_SIGNING_KEY_PASSWORD }}
- name: Upload Bundle
uses: actions/[email protected]
with:
retention-days: 14
name: bundle-${{ steps.gitversion.outputs.semVer }}
path: |
bin\Release\net7.0-android33.0\app.rosy_crow-Signed.aab
bin\Release\net7.0-android33.0\app.rosy_crow-Signed.apk
bin\Release\net7.0-android33.0\mapping.txt