/
.travis.yml
39 lines (36 loc) · 1.25 KB
/
.travis.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
os: osx
osx_image: xcode11.1
language: swift
install:
- |
brew install create-dmg
security create-keychain -p travis build.keychain
security default-keychain -s build.keychain
security unlock-keychain -p travis build.keychain
echo $CERTIFICATE_OSX_P12 | base64 --decode > certificate.p12
security import certificate.p12 -k build.keychain -P $CERTIFICATE_OSX_PASSWORD -T /usr/bin/codesign
security set-key-partition-list -S apple-tool:,apple: -s -k travis build.keychain
script:
- xcodebuild clean build -project ReaderTranslator.xcodeproj -scheme 'ReaderTranslatorMac' -sdk macosx -configuration Debug -derivedDataPath ./build | xcpretty -c
- cp -R build/Build/Products/Debug/ReaderTranslatorMac.app .
- create-dmg --volname "Application Installer" --hide-extension "Application.app" --app-drop-link 600 185 "ReaderTranslatorMac.dmg" "ReaderTranslatorMac.app/" | xcpretty -c
- find ReaderTranslatorMac *.dmg
branches:
only:
- master
- /\d+\.\d+\.\d+/
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: ReaderTranslatorMac *.dmg
draft: true
skip_cleanup: true
on:
tags: true
repo: filimo/ReaderTranslator
branch: master
branches:
only:
- master
- /^v\d+\.\d+\.\d+.*$/