-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
95 lines (82 loc) · 2.95 KB
/
azure-pipelines.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- release/*
- master
variables:
major: 2
minor: 1
patch: $[counter(variables['minor'], 0)]
version: "$(major).$(minor).$(patch)"
jobs:
- job: Build
pool:
vmImage: "macos-latest"
steps:
- task: Bash@3
inputs:
filePath: "build-universal-framework.sh"
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: "build"
includeRootFolder: true
archiveType: "zip"
archiveFile: "$(Build.ArtifactStagingDirectory)/FanFind-iOS-$(version).zip"
replaceExistingArchive: true
- publish: $(Build.ArtifactStagingDirectory)
artifact: Archive
- job: Deploy
pool:
vmImage: "macos-latest"
dependsOn: Build
steps:
- download: current
artifact: Archive
- task: GitHubRelease@0
inputs:
gitHubConnection: "cwoolum"
repositoryName: "Turnoutt/FanFind-iOS"
action: "create"
target: "6db92d020e381b111d8fdea1712c890a4d034be7"
tagSource: "manual"
tag: "$(version)"
title: "FanFind-iOS $(version)"
releaseNotesSource: "input"
releaseNotes: "None"
addChangeLog: false
assets: "$(Pipeline.Workspace)/Archive/FanFind-iOS-$(version).zip"
- script: |
cat > FanFind.podspec << EOL
Pod::Spec.new do |spec|
spec.name = "FanFind"
spec.version = "${Version}"
spec.summary = "FanFind is a tool for helping fans find each other anonymously in real time."
spec.description = <<-DESC
This cocoapods library helps you easily integrate the FanFind API in your application.
DESC
spec.homepage = "https://www.turnoutt.com"
spec.license = "MIT"
spec.author = { "Chris Woolum" => "[email protected]" }
spec.ios.deployment_target = "12.1"
spec.swift_versions = ['5.0', '5.1']
spec.source = { :http => "https://github.com/Turnoutt/FanFind-iOS/releases/download/${Version}/FanFind-iOS-${Version}.zip" }
spec.vendored_frameworks = "build/universal/FanFindSDK.framework"
end
EOL
displayName: Build podspec
env:
Version: $(version)
- script: pod trunk push FanFind.podspec --allow-warnings
displayName: Publish podspec
env:
COCOAPODS_TRUNK_TOKEN: $(CocoapodsToken)
# - task: GitHubRelease@0
# condition: failed()
# displayName: Clean up Orphan Release
# inputs:
# gitHubConnection: "cwoolum"
# repositoryName: "Turnoutt/FanFind-iOS"
# action: "delete"
# tag: "$(version)"