-
Notifications
You must be signed in to change notification settings - Fork 5
68 lines (66 loc) · 2.63 KB
/
dotnet-desktop.yml
File metadata and controls
68 lines (66 loc) · 2.63 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
name: MAUI CI/CD
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build-android:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 9.0.x
- name: Install MAUI workload
run: dotnet workload install maui
- name: Build
run: dotnet publish DeepWorkTracker.csproj -f net9.0-android -c Release -p:AndroidKeyStore=true -p:AndroidSigningKeyStore=mauiboilerplate.keystore -p:AndroidSigningKeyAlias=mauiboilerplate-keystore -p:AndroidSigningKeyPass="${{ secrets.KEYSTORE_PASSWORD }}" -p:AndroidSigningStorePass="${{ secrets.KEYSTORE_PASSWORD }}"
- name: List build output
run: ls -R bin/Release/net9.0-android/publish/
- uses: r0adkll/upload-google-play@v1.1.3
name: Upload Android Artifact to Play Console
with:
serviceAccountJsonPlainText: ${{ secrets.PLAYSTORE_SERVICE_ACCOUNT }}
packageName: com.maxmannstein.mauiboilerplate
releaseFiles: bin/Release/net9.0-android/publish/com.maxmannstein.mauiboilerplate-Signed.aab
track: internal
status: draft
build-ios:
runs-on: macos-15
steps:
- uses: actions/checkout@v3
- name: Setup Xcode version
uses: maxim-lobanov/setup-xcode@v1.6.0
with:
xcode-version: latest
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 9.0.x
- name: Install MAUI workload
run: dotnet workload install maui
- name: Import Code-Signing Certificates
uses: Apple-Actions/import-codesign-certs@v1
with:
p12-filepath: 'AppleSigningCertificate.p12'
p12-password: ${{ secrets.APPLE_SIGNING_CERTIFICATE_PASSWORD }}
- name: Download Apple Provisioning Profiles
uses: Apple-Actions/download-provisioning-profiles@v1
with:
bundle-id: 'com.maxmannstein.mauiboilerplate'
issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }}
api-key-id: ${{ secrets.APPSTORE_KEY_ID }}
api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }}
- name: Build
run: dotnet publish DeepWorkTracker.csproj -f net9.0-ios -c Release -p:ArchiveOnBuild=true -p:EnableAssemblyILStripping=false
- name: List build output
run: ls -R bin/Release/net9.0-ios/publish/
- name: Upload app to TestFlight
uses: Apple-Actions/upload-testflight-build@v1
with:
app-path: 'bin/Release/net9.0-ios/publish/DeepWorkTracker.ipa'
issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }}
api-key-id: ${{ secrets.APPSTORE_KEY_ID }}
api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }}