1
- name : Build and publish .NET MAUI App Android
1
+ name : Build and Publish .NET MAUI App
2
+
2
3
on :
3
4
push :
4
5
branches : [ "master" ]
5
6
pull_request :
6
7
branches : [ "master" ]
7
8
8
9
jobs :
9
- build :
10
-
10
+ # Build and publish Android
11
+ build-android :
11
12
runs-on : windows-latest
12
13
13
14
steps :
@@ -24,18 +25,72 @@ jobs:
24
25
run : dotnet workload install maui
25
26
- name : Restore dependencies
26
27
run : dotnet restore
27
- - name : Build
28
+ - name : Build Android
28
29
run : dotnet build -c Release -f net8.0-android /p:AndroidSigningKeyStore=FastCfIPScanner.keystore /p:AndroidSigningKeyAlias=key /p:AndroidSigningKeyPass="${{ secrets.KEYSTORE_PASSWORD }}" /p:AndroidSigningStorePass="${{ secrets.KEYSTORE_PASSWORD_ALIAS }}" --no-restore
29
30
- name : List directory contents
30
31
run : |
31
32
ls -r
32
- - name : Create Release
33
+ - name : Create Android Release
33
34
uses : marvinpinto/action-automatic-releases@latest
34
35
with :
35
36
repo_token : ${{ secrets.TOKEN }} # Replace with your actual secret token
36
37
automatic_release_tag : " latest"
37
38
prerelease : true
38
- title : " Development Build"
39
+ title : " Android Build"
39
40
files : ./**/*.apk
40
41
42
+ # Build and publish Windows
43
+ build-windows :
44
+ runs-on : windows-latest
41
45
46
+ steps :
47
+ - uses : actions/checkout@v4
48
+ - name : Setup .NET
49
+ uses : actions/setup-dotnet@v4
50
+ with :
51
+ dotnet-version : 8.0.x
52
+ - name : Install .NET MAUI
53
+ run : dotnet workload install maui
54
+ - name : Restore dependencies
55
+ run : dotnet restore
56
+ - name : Build Windows
57
+ run : dotnet build -c Release -f net8.0-windows --no-restore
58
+ - name : List directory contents
59
+ run : |
60
+ ls -r
61
+ - name : Create Windows Release
62
+ uses : marvinpinto/action-automatic-releases@latest
63
+ with :
64
+ repo_token : ${{ secrets.TOKEN }}
65
+ automatic_release_tag : " latest"
66
+ prerelease : true
67
+ title : " Windows Build"
68
+ files : ./**/*.exe
69
+
70
+ # Build and publish Linux
71
+ build-linux :
72
+ runs-on : ubuntu-latest
73
+
74
+ steps :
75
+ - uses : actions/checkout@v4
76
+ - name : Setup .NET
77
+ uses : actions/setup-dotnet@v4
78
+ with :
79
+ dotnet-version : 8.0.x
80
+ - name : Install .NET MAUI
81
+ run : dotnet workload install maui
82
+ - name : Restore dependencies
83
+ run : dotnet restore
84
+ - name : Build Linux
85
+ run : dotnet build -c Release -f net8.0-linux --no-restore
86
+ - name : List directory contents
87
+ run : |
88
+ ls -r
89
+ - name : Create Linux Release
90
+ uses : marvinpinto/action-automatic-releases@latest
91
+ with :
92
+ repo_token : ${{ secrets.TOKEN }}
93
+ automatic_release_tag : " latest"
94
+ prerelease : true
95
+ title : " Linux Build"
96
+ files : ./**/*.AppImage
0 commit comments