mirror of
https://github.com/bitwarden/mobile
synced 2025-12-22 11:13:49 +00:00
archive on build
This commit is contained in:
22
.github/scripts/ios/build.ps1
vendored
22
.github/scripts/ios/build.ps1
vendored
@@ -1,14 +1,24 @@
|
|||||||
param (
|
param (
|
||||||
[Parameter(Mandatory=$true)]
|
[Parameter(Mandatory=$true)]
|
||||||
[string] $configuration,
|
[string] $configuration,
|
||||||
[string] $platform = "iPhone"
|
[string] $platform = "iPhone",
|
||||||
|
[switch] $archive
|
||||||
)
|
)
|
||||||
|
|
||||||
$rootPath = $env:GITHUB_WORKSPACE;
|
$rootPath = $env:GITHUB_WORKSPACE;
|
||||||
$iosPath = $($rootPath + "/src/iOS/iOS.csproj");
|
$iosPath = $($rootPath + "/src/iOS/iOS.csproj");
|
||||||
|
|
||||||
Write-Output "########################################"
|
if ($archive)
|
||||||
Write-Output "##### Build $configuration Configuration for $platform Platform"
|
{
|
||||||
Write-Output "########################################"
|
Write-Output "########################################"
|
||||||
|
Write-Output "##### Archive $configuration Configuration for $platform Platform"
|
||||||
msbuild "$($iosPath)" "/p:Platform=$platform" "/p:Configuration=$configuration"
|
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`""
|
||||||
|
}
|
||||||
|
|||||||
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -160,8 +160,8 @@ jobs:
|
|||||||
- name: Restore packages
|
- name: Restore packages
|
||||||
run: nuget restore
|
run: nuget restore
|
||||||
|
|
||||||
- name: Build for App Store
|
- name: Archive Build for App Store
|
||||||
run: ./.github/scripts/ios/build.ps1 -configuration AppStore -platform iPhone
|
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 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user