Skip to content

Commit f1d586b

Browse files
committed
Fix build/publish
- Move creation of Android keystore to before build. - When building app, provide signing credentials. - Remove signing credentials from publish.
1 parent 8648f4b commit f1d586b

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/CI Publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ jobs:
3737
dotnet workload install android --ignore-failed-sources
3838
dotnet workload install maui --ignore-failed-sources
3939
40+
- name: Create keystore
41+
shell: bash
42+
run: echo "${{ secrets.ANDROID_SIGNING_KEYSTORE }}" | base64 --decode > PeriodTracker.keystore
43+
4044
- name: Build app
41-
run: dotnet build -c Release
45+
run: dotnet build -c Release -p:AndroidSigningStorePass="${{ secrets.ANDROID_SIGNING_PASSWORD }}" -p:AndroidSigningKeyPass="${{ secrets.ANDROID_SIGNING_PASSWORD }}"
4246

4347
- name: Run tests
4448
run: dotnet test -c Release --no-build -l:"console;verbosity=normal"
4549

46-
- name: Create keystore
47-
shell: bash
48-
run: echo "${{ secrets.ANDROID_SIGNING_KEYSTORE }}" | base64 --decode > PeriodTracker.keystore
49-
5050
- name: Publish MAUI Android
51-
run: dotnet publish -f net8.0-android --no-build PeriodTracker.sln -p:AndroidSigningStorePass="${{ secrets.ANDROID_SIGNING_PASSWORD }}" -p:AndroidSigningKeyPass="${{ secrets.ANDROID_SIGNING_PASSWORD }}"
51+
run: dotnet publish -f net8.0-android --no-build
5252

5353
- name: Save asset name
5454
id: save_asset_name

0 commit comments

Comments
 (0)