From f679f9f62890e60c98846698ac476f2b2fb9dd8e Mon Sep 17 00:00:00 2001 From: Stuart Ferguson Date: Tue, 16 Aug 2022 11:12:45 +0100 Subject: [PATCH] Sign android app --- .github/workflows/createrelease.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/createrelease.yml b/.github/workflows/createrelease.yml index 8038f6b8..b1f540ef 100644 --- a/.github/workflows/createrelease.yml +++ b/.github/workflows/createrelease.yml @@ -21,6 +21,11 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - name: Setup Keystore File + run: | + echo "${{secrets.KEYSTORE_FILE }}" > transactionprocessing.keystore.asc + gpg -d --passphrase "${{ secrets.KEYSTORE_PASSWORD_GPG }}" --batch transactionprocessing.keystore.asc > transactionprocessing.keystore + - name: Get the version id: get_version run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} @@ -45,7 +50,7 @@ jobs: isWindows: false - name: Build Android - run: dotnet publish TransactionMobile.Maui/TransactionMobile.Maui.csproj -c Release -f net6.0-android --no-restore + run: dotnet publish TransactionMobile.Maui/TransactionMobile.Maui.csproj -c Release -f net6.0-android --no-restore /p:AndroidSigningKeyStore=transactionprocessing.keystore /:AndroidSigningKeyAlias:ghactionskey /p:AndroidSigningKeyPass="${{ secrets.KEYSTORE_PASSWORD }}" - name: Upload Android Artifact uses: actions/upload-artifact@v3