Skip to content

Commit 33de0bf

Browse files
authored
Add push to trunk workflow (#205)
1 parent f8b1b81 commit 33de0bf

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/pod-trunk-push.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Push to Trunk
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
build:
10+
runs-on: macOS-latest
11+
12+
steps:
13+
- uses: actions/checkout@v1
14+
15+
- name: Deploy to Cocoapods
16+
run: |
17+
set -eo pipefail
18+
export LIB_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
19+
pod lib lint --allow-warnings
20+
pod trunk push --allow-warnings
21+
env:
22+
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}

Gifu.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Gifu"
3-
s.version = "3.4.1"
3+
s.version = ENV['LIB_VERSION'] || "0.0.1"
44
s.summary = "High-performance animated GIF support for iOS "
55
s.homepage = "https://github.com/kaishin/Gifu"
66
s.social_media_url = "http://twitter.com/kaishin"

0 commit comments

Comments
 (0)