mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
do actions on master push or release event
This commit is contained in:
parent
f4fb7eb8b7
commit
67cd17c604
1 changed files with 13 additions and 13 deletions
26
.github/workflows/build.yml
vendored
26
.github/workflows/build.yml
vendored
|
@ -54,14 +54,14 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Decrypt secrets
|
- name: Decrypt secrets
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master' || github.event_name == 'release'
|
||||||
run: ./.github/scripts/android/decrypt-secrets.ps1
|
run: ./.github/scripts/android/decrypt-secrets.ps1
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
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'
|
if: github.ref == 'refs/heads/master' || github.event_name == 'release'
|
||||||
run: ./.github/scripts/android/increment-version.ps1
|
run: ./.github/scripts/android/increment-version.ps1
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ jobs:
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
- name: Sign for Play Store
|
- name: Sign for Play Store
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master' || github.event_name == 'release'
|
||||||
run: ./.github/scripts/android/sign-play.ps1
|
run: ./.github/scripts/android/sign-play.ps1
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
env:
|
env:
|
||||||
|
@ -84,14 +84,14 @@ jobs:
|
||||||
UPLOAD_KEYSTORE_PASSWORD: ${{ secrets.UPLOAD_KEYSTORE_PASSWORD }}
|
UPLOAD_KEYSTORE_PASSWORD: ${{ secrets.UPLOAD_KEYSTORE_PASSWORD }}
|
||||||
|
|
||||||
- name: Upload Play Store .aab artifact
|
- name: Upload Play Store .aab artifact
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master' || github.event_name == 'release'
|
||||||
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 artifact
|
- name: Upload Play Store .apk artifact
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master' || github.event_name == 'release'
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: com.x8bit.bitwarden.apk
|
name: com.x8bit.bitwarden.apk
|
||||||
|
@ -109,21 +109,21 @@ jobs:
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
- name: Sign for F-Droid
|
- name: Sign for F-Droid
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master' || github.event_name == 'release'
|
||||||
run: ./.github/scripts/android/sign-fdroid.ps1
|
run: ./.github/scripts/android/sign-fdroid.ps1
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
env:
|
env:
|
||||||
FDROID_KEYSTORE_PASSWORD: ${{ secrets.FDROID_KEYSTORE_PASSWORD }}
|
FDROID_KEYSTORE_PASSWORD: ${{ secrets.FDROID_KEYSTORE_PASSWORD }}
|
||||||
|
|
||||||
- name: Upload F-Droid .apk artifact
|
- name: Upload F-Droid .apk artifact
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master' || github.event_name == 'release'
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: com.x8bit.bitwarden-fdroid.apk
|
name: com.x8bit.bitwarden-fdroid.apk
|
||||||
path: ./com.x8bit.bitwarden-fdroid.apk
|
path: ./com.x8bit.bitwarden-fdroid.apk
|
||||||
|
|
||||||
- name: Deploy to Play Store
|
- name: Deploy to Play Store
|
||||||
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
|
if: github.ref == 'refs/heads/master' || github.event_name == 'release'
|
||||||
run: ./.github/scripts/android/deploy-play.ps1
|
run: ./.github/scripts/android/deploy-play.ps1
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
|
@ -234,7 +234,7 @@ jobs:
|
||||||
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'
|
if: github.ref == 'refs/heads/master' || github.event_name == 'release'
|
||||||
run: ./.github/scripts/ios/increment-version.ps1
|
run: ./.github/scripts/ios/increment-version.ps1
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
|
@ -254,7 +254,7 @@ jobs:
|
||||||
run: nuget restore
|
run: nuget restore
|
||||||
|
|
||||||
- name: Archive Build for App Store
|
- name: Archive Build for App Store
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master' || github.event_name == 'release'
|
||||||
run: ./.github/scripts/ios/build.ps1 -configuration AppStore -platform iPhone -archive
|
run: ./.github/scripts/ios/build.ps1 -configuration AppStore -platform iPhone -archive
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
|
@ -264,19 +264,19 @@ jobs:
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
- name: Export .ipa for App Store
|
- name: Export .ipa for App Store
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master' || github.event_name == 'release'
|
||||||
run: ./.github/scripts/ios/export-ipa.ps1 -method app-store
|
run: ./.github/scripts/ios/export-ipa.ps1 -method app-store
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
- name: Upload App Store .ipa artifact
|
- name: Upload App Store .ipa artifact
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master' || github.event_name == 'release'
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Bitwarden.ipa
|
name: Bitwarden.ipa
|
||||||
path: ./bitwarden-export/Bitwarden.ipa
|
path: ./bitwarden-export/Bitwarden.ipa
|
||||||
|
|
||||||
- name: Deploy to App Store
|
- name: Deploy to App Store
|
||||||
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
|
if: github.ref == 'refs/heads/master' || github.event_name == 'release'
|
||||||
run: ./.github/scripts/ios/deploy-app-store.ps1
|
run: ./.github/scripts/ios/deploy-app-store.ps1
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Reference in a new issue