Skip to content

Commit 6f083de

Browse files
Merge pull request #7 from SomeRandomiOSDev/CocoaPods
Added workflow for automatically publishing CocoaPods
2 parents 1e74ae3 + 2c32222 commit 6f083de

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

workflows/publish-cocoapods.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish CocoaPods
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
publish:
8+
name: Publish CocoaPods
9+
runs-on: macOS-latest
10+
env:
11+
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
12+
13+
steps:
14+
- name: Checkout Code
15+
uses: actions/checkout@v2
16+
17+
- name: Setup CocoaPods
18+
uses: maxim-lobanov/setup-cocoapods@v1
19+
with:
20+
version: latest
21+
22+
- name: Publish CocoaPod
23+
run: |
24+
pod trunk push <#TemplateProject#>.podspec

0 commit comments

Comments
 (0)