mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 02:18:27 +03:00
deploy to app store
This commit is contained in:
parent
8e6c6e04a3
commit
097415385e
2 changed files with 14 additions and 0 deletions
4
.github/scripts/ios/deploy-app-store.ps1
vendored
Normal file
4
.github/scripts/ios/deploy-app-store.ps1
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
$rootPath = $env:GITHUB_WORKSPACE;
|
||||||
|
$ipaPath = "$rootPath/com.8bit.bitwarden.ipa"
|
||||||
|
|
||||||
|
xcrun altool --upload-app --file "$ipaPath" --username "$env:APPLE_ID_USERNAME" --password "$env:APPLE_ID_PASSWORD"
|
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
|
@ -161,12 +161,14 @@ 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'
|
||||||
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
|
||||||
env:
|
env:
|
||||||
KEYCHAIN_PASSWORD: ${{ secrets.IOS_KEYCHAIN_PASSWORD }}
|
KEYCHAIN_PASSWORD: ${{ secrets.IOS_KEYCHAIN_PASSWORD }}
|
||||||
|
|
||||||
- name: Export .ipa for App Store
|
- name: Export .ipa for App Store
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
run: ./.github/scripts/ios/export-ipa.ps1 -method app-store
|
run: ./.github/scripts/ios/export-ipa.ps1 -method app-store
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
|
@ -176,3 +178,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: com.8bit.bitwarden.ipa
|
name: com.8bit.bitwarden.ipa
|
||||||
path: ./com.8bit.bitwarden.ipa
|
path: ./com.8bit.bitwarden.ipa
|
||||||
|
|
||||||
|
- name: Deploy to App Store
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
|
run: ./.github/scripts/ios/deploy-app-store.ps1
|
||||||
|
shell: pwsh
|
||||||
|
env:
|
||||||
|
APPLE_ID_USERNAME: ${{ secrets.APPLE_ID_USERNAME }}
|
||||||
|
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
|
||||||
|
|
Loading…
Reference in a new issue