1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-25 04:33:36 +00:00

github action android build steps

This commit is contained in:
Kyle Spearrin
2020-06-08 12:14:10 -04:00
parent c30239b3a8
commit 0a3a982cb9
12 changed files with 262 additions and 5 deletions

View File

@@ -1,11 +1,14 @@
name: Build
on: push
on:
push:
branches:
- '!l10n_master'
- '!gh-pages'
jobs:
android:
runs-on: windows-latest
steps:
@@ -25,14 +28,47 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v2
- name: Decrypt secrets
run: ./github/scripts/android/decrypt-secrets.ps1
env:
DECRYPT_FILE_PASSWORD: ${{ secrets.DECRYPT_FILE_PASSWORD }}
- name: Increment version
run: ./github/scripts/android/increment-version.ps1
- name: Restore packages
run: nuget restore
- name: Build app
run: msbuild ./src/Android/Android.csproj /p:Configuration=Debug
- name: Build for Play Store
run: ./github/scripts/android/build-play.ps1
env:
PLAY_KEYSTORE_PASSWORD: ${{ secrets.PLAY_KEYSTORE_PASSWORD }}
UPLOAD_KEYSTORE_PASSWORD: ${{ secrets.UPLOAD_KEYSTORE_PASSWORD }}
- name: Upload Plat Store .aab
uses: actions/upload-artifact@v2
with:
name: com.x8bit.bitwarden.aab
path: ./com.x8bit.bitwarden.aab
- name: Upload Play Store .apk
uses: actions/upload-artifact@v2
with:
name: com.x8bit.bitwarden.apk
path: ./com.x8bit.bitwarden.apk
- name: Build for F-Droid Store
run: ./github/scripts/android/build-fdroid.ps1
env:
FDROID_KEYSTORE_PASSWORD: ${{ secrets.FDROID_KEYSTORE_PASSWORD }}
- name: Upload F-Droid .apk
uses: actions/upload-artifact@v2
with:
name: com.x8bit.bitwarden-fdroid.apk
path: ./com.x8bit.bitwarden-fdroid.apk
ios:
runs-on: macos-latest
steps: