-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (35 loc) · 1.24 KB
/
release-package.yml
File metadata and controls
44 lines (35 loc) · 1.24 KB
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
39
40
41
42
43
44
name: Contentstack iOS Persistence SDK Release
on:
push:
branches:
- main
jobs:
release:
name: Release Contentstack iOS Persistence SDK Release
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Select Xcode
run: sudo xcode-select -switch /Applications/Xcode.app && /usr/bin/xcodebuild -version
- name: Install dependencies
run: |
pod install --repo-update
- name: Build
run: |
# Add commands to build and test your package
xcodebuild -workspace ContentstackPersistence.xcworkspace -scheme 'ContentstackPersistence' -destination 'platform=iOS Simulator,name=iPhone 13 Pro'
- name: Tag release
id: tag
run: |
git tag v0.1.2 # Replace with your desired version number
echo "::set-output name=tag::v0.1.2" # Replace with the same version number as above
- name: Push tag
uses: ad-m/github-push-action@v0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.tag.outputs.tag }}
- name: CocoaPods trunk push
run: pod trunk push
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}