From a05e037308999ea8980baca675b97c6a7d6e7f8d Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 9 Jun 2020 10:21:46 -0400 Subject: [PATCH] deploy to play store --- .github/scripts/android/decrypt-secrets.ps1 | 1 + .github/scripts/android/deploy-play.ps1 | 9 +++++++++ .github/workflows/build.yml | 5 +++++ 3 files changed, 15 insertions(+) create mode 100644 .github/scripts/android/deploy-play.ps1 diff --git a/.github/scripts/android/decrypt-secrets.ps1 b/.github/scripts/android/decrypt-secrets.ps1 index 25961f5214..d89fe368f8 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 0000000000..57b5d9bc13 --- /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 ecf1b771c2..b3a64104f7 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