-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstage-release-appstore.yml
More file actions
47 lines (40 loc) · 1.54 KB
/
stage-release-appstore.yml
File metadata and controls
47 lines (40 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
parameters:
applicationEnvironment: '' # e.g. "Staging", "Production"
deploymentEnvironment: '' # e.g. "GooglePlay", "AppStore", "Firebase App Distribution"
iosVariableGroup: ''
ServiceConnection: ''
jobs:
- deployment: AppStore_iOS_${{ parameters.deploymentEnvironment}}
pool:
vmImage: $(macOSHostedAgentImage)
environment: ${{ parameters.deploymentEnvironment }}
variables:
- group: ${{ parameters.iosVariableGroup }}
- name: artifactName
value: $(iOSArtifactName)_${{ parameters.applicationEnvironment }}
strategy:
runOnce:
deploy:
steps:
- download: current
artifact: $(artifactName)
- task: AppStoreRelease@1
displayName: 'Publish to AppStore'
inputs:
serviceEndpoint: $(AppStoreServiceConnection)
appIdentifier: $(ApplicationIdentifier)
appType: 'iOS'
ipaPath: '$(Pipeline.Workspace)/$(artifactName)/*.ipa'
releaseTrack: 'TestFlight'
shouldSkipWaitingForProcessing: true
teamId: $(AppleTeamId)
teamName: $(AppleTeamName)
appSpecificPassword: '$(AppleAppSpecificPasswordFastLane)'
appSpecificId: '$(AppleStoreConnectIdentifier)' # Allows to bypass 2FA when specified with 'appSpecificPassword'.
- task: DeleteFiles@1
displayName: "Remove downloaded artifacts"
condition: always()
inputs:
SourceFolder: $(Pipeline.Workspace)/$(artifactName)
RemoveSourceFolder: True
Contents: '**'