mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 02:18:27 +03:00
branches ignore and only on master
This commit is contained in:
parent
0a3a982cb9
commit
53f9eb083d
1 changed files with 11 additions and 4 deletions
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
|
@ -2,9 +2,9 @@ name: Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches-ignore:
|
||||||
- '!l10n_master'
|
- 'l10n_master'
|
||||||
- '!gh-pages'
|
- 'gh-pages'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
|
@ -29,40 +29,47 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Decrypt secrets
|
- name: Decrypt secrets
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
run: ./github/scripts/android/decrypt-secrets.ps1
|
run: ./github/scripts/android/decrypt-secrets.ps1
|
||||||
env:
|
env:
|
||||||
DECRYPT_FILE_PASSWORD: ${{ secrets.DECRYPT_FILE_PASSWORD }}
|
DECRYPT_FILE_PASSWORD: ${{ secrets.DECRYPT_FILE_PASSWORD }}
|
||||||
|
|
||||||
- name: Increment version
|
- name: Increment version
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
run: ./github/scripts/android/increment-version.ps1
|
run: ./github/scripts/android/increment-version.ps1
|
||||||
|
|
||||||
- name: Restore packages
|
- name: Restore packages
|
||||||
run: nuget restore
|
run: nuget restore
|
||||||
|
|
||||||
- name: Build for Play Store
|
- name: Build for Play Store
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
run: ./github/scripts/android/build-play.ps1
|
run: ./github/scripts/android/build-play.ps1
|
||||||
env:
|
env:
|
||||||
PLAY_KEYSTORE_PASSWORD: ${{ secrets.PLAY_KEYSTORE_PASSWORD }}
|
PLAY_KEYSTORE_PASSWORD: ${{ secrets.PLAY_KEYSTORE_PASSWORD }}
|
||||||
UPLOAD_KEYSTORE_PASSWORD: ${{ secrets.UPLOAD_KEYSTORE_PASSWORD }}
|
UPLOAD_KEYSTORE_PASSWORD: ${{ secrets.UPLOAD_KEYSTORE_PASSWORD }}
|
||||||
|
|
||||||
- name: Upload Plat Store .aab
|
- name: Upload Play Store .aab
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: com.x8bit.bitwarden.aab
|
name: com.x8bit.bitwarden.aab
|
||||||
path: ./com.x8bit.bitwarden.aab
|
path: ./com.x8bit.bitwarden.aab
|
||||||
|
|
||||||
- name: Upload Play Store .apk
|
- name: Upload Play Store .apk
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: com.x8bit.bitwarden.apk
|
name: com.x8bit.bitwarden.apk
|
||||||
path: ./com.x8bit.bitwarden.apk
|
path: ./com.x8bit.bitwarden.apk
|
||||||
|
|
||||||
- name: Build for F-Droid Store
|
- name: Build for F-Droid Store
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
run: ./github/scripts/android/build-fdroid.ps1
|
run: ./github/scripts/android/build-fdroid.ps1
|
||||||
env:
|
env:
|
||||||
FDROID_KEYSTORE_PASSWORD: ${{ secrets.FDROID_KEYSTORE_PASSWORD }}
|
FDROID_KEYSTORE_PASSWORD: ${{ secrets.FDROID_KEYSTORE_PASSWORD }}
|
||||||
|
|
||||||
- name: Upload F-Droid .apk
|
- name: Upload F-Droid .apk
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: com.x8bit.bitwarden-fdroid.apk
|
name: com.x8bit.bitwarden-fdroid.apk
|
||||||
|
|
Loading…
Reference in a new issue