1
0
mirror of https://github.com/bitwarden/mobile synced 2024-12-25 00:12:24 +01:00

archive on build

This commit is contained in:
Kyle Spearrin 2020-06-10 09:03:12 -04:00
parent 363f5be8ff
commit 39e0e77824
2 changed files with 18 additions and 8 deletions

View File

@ -1,14 +1,24 @@
param (
[Parameter(Mandatory=$true)]
[string] $configuration,
[string] $platform = "iPhone"
[string] $platform = "iPhone",
[switch] $archive
)
$rootPath = $env:GITHUB_WORKSPACE;
$iosPath = $($rootPath + "/src/iOS/iOS.csproj");
Write-Output "########################################"
Write-Output "##### Build $configuration Configuration for $platform Platform"
Write-Output "########################################"
msbuild "$($iosPath)" "/p:Platform=$platform" "/p:Configuration=$configuration"
if ($archive)
{
Write-Output "########################################"
Write-Output "##### Archive $configuration Configuration for $platform Platform"
Write-Output "########################################"
msbuild "$($iosPath)" "/p:Platform=$platform" "/p:Configuration=$configuration" `
"/p:ArchiveOnBuild=true" "/t:`"Build`""
} else
{
Write-Output "########################################"
Write-Output "##### Build $configuration Configuration for $platform Platform"
Write-Output "########################################"
msbuild "$($iosPath)" "/p:Platform=$platform" "/p:Configuration=$configuration" "/t:`"Build`""
}

View File

@ -160,8 +160,8 @@ jobs:
- name: Restore packages
run: nuget restore
- name: Build for App Store
run: ./.github/scripts/ios/build.ps1 -configuration AppStore -platform iPhone
- name: Archive Build for App Store
run: ./.github/scripts/ios/build.ps1 -configuration AppStore -platform iPhone -archive
shell: pwsh
env:
KEYCHAIN_PASSWORD: ${{ secrets.IOS_KEYCHAIN_PASSWORD }}