diff --git a/.github/scripts/android/decrypt-secrets.ps1 b/.github/scripts/android/decrypt-secrets.ps1 index 25961f521..d89fe368f 100644 --- a/.github/scripts/android/decrypt-secrets.ps1 +++ b/.github/scripts/android/decrypt-secrets.ps1 @@ -19,3 +19,4 @@ Invoke-Expression ` "& `"$decryptSecretPath`" -filename $($appKeystoreFdroidFilename + ".gpg") -output $($appKeystoreFdroidPath)" Invoke-Expression ` "& `"$decryptSecretPath`" -filename $($googleServicesFilename + ".gpg") -output $($googleServicesPath)" +Invoke-Expression "& `"$decryptSecretPath`" -filename play_creds.json.gpg" diff --git a/.github/scripts/android/deploy-play.ps1 b/.github/scripts/android/deploy-play.ps1 new file mode 100644 index 000000000..57b5d9bc1 --- /dev/null +++ b/.github/scripts/android/deploy-play.ps1 @@ -0,0 +1,9 @@ +$rootPath = $env:GITHUB_WORKSPACE; +$homePath = $env:HOME; + +$publisherPath = $($rootPath + "\store\google\Publisher\bin\Release\netcoreapp2.0\Publisher.dll"); +$credsPath = $($homePath + "\secrets\play_creds.json"); +$aabPath = $($rootPath + "\com.x8bit.bitwarden.aab"); +$track = "alpha"; + +dotnet $publisherPath $credsPath $aabPath $track diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ecf1b771c..b3a64104f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -100,6 +100,11 @@ jobs: name: com.x8bit.bitwarden-fdroid.apk path: ./com.x8bit.bitwarden-fdroid.apk + - name: Deploy to Play Store + if: github.ref == 'refs/heads/master' + run: ./.github/scripts/android/deploy-play.ps1 + shell: pwsh + ios: runs-on: macos-latest