-
Notifications
You must be signed in to change notification settings - Fork 13
38 lines (36 loc) · 1022 Bytes
/
deploy.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
name: Deploy
on:
push:
tags:
- '*'
jobs:
carthage:
name: Upload Carthage binary
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: AckeeCZ/load-xcode-version@1.0
- name: Build
run: carthage build --no-skip-current --cache-builds
- name: Archive
run: carthage archive ACKategories
- uses: xresloader/upload-to-github-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: ACKategories.framework.zip
tags: true
draft: false
cocoapods:
name: Push podspec to Cocoapods trunk
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: AckeeCZ/load-xcode-version@1.0
- name: Install gems
run: bundle install
- name: Push podspec
run: bundle exec pod trunk push --allow-warnings
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}