Skip to content

Commit 5bd0558

Browse files
authored
ci: add manual cocoapods release workflow (#1675)
1 parent c6d894b commit 5bd0558

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Trigger this workflow only to manually publish a Cocoapods release; this should only be used
2+
# in extraordinary circumstances, as releases are normally published automatically as part of
3+
# the automated release workflow.
4+
5+
name: release-manual-cocoapods
6+
on:
7+
workflow_dispatch:
8+
inputs:
9+
ref:
10+
default: ''
11+
description: 'Reference (tag / SHA):'
12+
env:
13+
CI_XCODE_13: '/Applications/Xcode_13.0.app/Contents/Developer'
14+
jobs:
15+
cocoapods:
16+
runs-on: macos-11
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v2
20+
with:
21+
ref: ${{ github.event.inputs.ref }}
22+
- name: CocoaPods
23+
run: set -o pipefail && env NSUnbufferedIO=YES pod lib lint --allow-warnings --verbose
24+
- name: Deploy CocoaPods
25+
run: set -o pipefail && env NSUnbufferedIO=YES pod trunk push Parse.podspec --allow-warnings --verbose
26+
env:
27+
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
28+
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}

0 commit comments

Comments
 (0)