-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 1.18 KB
/
publish.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
name: Build AAB and APK
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Import Keystore File
run: echo "${{ secrets.KEYSTORE_FILE }}" > diary.keystore.asc
- name: Decrypt Keystore File
run: gpg -d --passphrase "${{ secrets.KEYSTORE_GPG_PASS }}" --batch diary.keystore.asc > diary.keystore
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Install MAUI
run: dotnet workload install maui
- name: Restore Dependencies
run: dotnet restore Diary/Diary/Diary.csproj
- name: Publish
run: dotnet publish Diary/Diary/Diary.csproj -f net8.0-android -p:ApplicationId=com.filipvagner.diary -p:AndroidKeyStore=true -p:AndroidSigningKeyStore=../../diary.keystore -p:AndroidSigningKeyAlias=diary -p:AndroidSigningKeyPass="${{ secrets.KEYSTORE_PASS }}" -p:AndroidSigningStorePass="${{ secrets.KEYSTORE_PASS }}" --no-restore
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
path: |
./**/publish/*.aab
./**/publish/*.apk