Skip to content

Commit

Permalink
Add push to trunk workflow (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaishin authored Jan 20, 2025
1 parent f8b1b81 commit 33de0bf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/pod-trunk-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Push to Trunk

on:
push:
tags:
- "*"

jobs:
build:
runs-on: macOS-latest

steps:
- uses: actions/checkout@v1

- name: Deploy to Cocoapods
run: |
set -eo pipefail
export LIB_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
pod lib lint --allow-warnings
pod trunk push --allow-warnings
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
2 changes: 1 addition & 1 deletion Gifu.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Gifu"
s.version = "3.4.1"
s.version = ENV['LIB_VERSION'] || "0.0.1"
s.summary = "High-performance animated GIF support for iOS "
s.homepage = "https://github.com/kaishin/Gifu"
s.social_media_url = "http://twitter.com/kaishin"
Expand Down

0 comments on commit 33de0bf

Please sign in to comment.