mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 07:43:37 +00:00
setup ios keychain
This commit is contained in:
11
.github/scripts/ios/setup-keychain.ps1
vendored
Normal file
11
.github/scripts/ios/setup-keychain.ps1
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
$homePath = $env:HOME;
|
||||||
|
$secretsPath = $homePath + "\secrets"
|
||||||
|
|
||||||
|
$mobileKeyPath = $($secretsPath + "\bitwarden-mobile-key.p12");
|
||||||
|
$distCertPath = $($secretsPath + "\iphone-distribution-cert.p12");
|
||||||
|
|
||||||
|
security create-keychain -p $env:KEYCHAIN_PASSWORD build.keychain
|
||||||
|
security default-keychain -s build.keychain
|
||||||
|
security unlock-keychain -p $env:KEYCHAIN_PASSWORD build.keychain
|
||||||
|
security import $mobileKeyPath -k build.keychain -P $env:MOBILE_KEY_PASSWORD
|
||||||
|
security import $distCertPath -k build.keychain -P $env:DIST_CERT_PASSWORD
|
||||||
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@@ -128,6 +128,15 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
DECRYPT_FILE_PASSWORD: ${{ secrets.DECRYPT_FILE_PASSWORD }}
|
DECRYPT_FILE_PASSWORD: ${{ secrets.DECRYPT_FILE_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Set up keychain
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
|
run: ./.github/scripts/ios/setup-keychain.ps1
|
||||||
|
shell: pwsh
|
||||||
|
env:
|
||||||
|
KEYCHAIN_PASSWORD: ${{ secrets.IOS_KEYCHAIN_PASSWORD }}
|
||||||
|
MOBILE_KEY_PASSWORD: ${{ secrets.IOS_KEY_PASSWORD }}
|
||||||
|
DIST_CERT_PASSWORD: ${{ secrets.IOS_DIST_CERT_PASSWORD }}
|
||||||
|
|
||||||
- name: Restore packages
|
- name: Restore packages
|
||||||
run: nuget restore
|
run: nuget restore
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user