Skip to content

Commit

Permalink
feat: added git action for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Vikram Kalta authored and Vikram Kalta committed Feb 20, 2024
1 parent fd3b57e commit f3617c9
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 6 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Contentstack iOS Delivery SDK Release

on:
push:
branches:
- main

jobs:
release:
name: Release Contentstack iOS Delivery 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 Contentstack.xcworkspace -scheme 'Contentstack' -destination 'platform=iOS Simulator,name=iPhone 13 Pro'
- name: Tag release
id: tag
run: |
git tag v3.12.2 # Replace with your desired version number
echo "::set-output name=tag::v3.12.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 }}
6 changes: 0 additions & 6 deletions Contentstack.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
23A53F501E277BBE001DBE35 /* NSObject+Extensions.m in Sources */ = {isa = PBXBuildFile; fileRef = 23A53F331E276BA5001DBE35 /* NSObject+Extensions.m */; };
23A53F5A1E277CD3001DBE35 /* Contentstack.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 230B38C01C16E98B00444A14 /* Contentstack.framework */; };
23B6F12A1B5662EE00A9E983 /* ISO8601DateFormatter.m in Sources */ = {isa = PBXBuildFile; fileRef = 23B6F1281B5662EE00A9E983 /* ISO8601DateFormatter.m */; };
47CD50872B7625B90032747B /* BSONObjectIdGenerator.m in Sources */ = {isa = PBXBuildFile; fileRef = 47CD50862B7625B90032747B /* BSONObjectIdGenerator.m */; };
565E11BB1BD76654005AD47F /* MMDocument.m in Sources */ = {isa = PBXBuildFile; fileRef = 565E11AA1BD76654005AD47F /* MMDocument.m */; };
565E11BC1BD76654005AD47F /* MMElement.m in Sources */ = {isa = PBXBuildFile; fileRef = 565E11AD1BD76654005AD47F /* MMElement.m */; };
565E11BD1BD76654005AD47F /* MMGenerator.m in Sources */ = {isa = PBXBuildFile; fileRef = 565E11AF1BD76654005AD47F /* MMGenerator.m */; };
Expand Down Expand Up @@ -206,8 +205,6 @@
23B6F1281B5662EE00A9E983 /* ISO8601DateFormatter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ISO8601DateFormatter.m; sourceTree = "<group>"; };
23C545FB1C1976FE007BBD27 /* ios-build-framework-script.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = "ios-build-framework-script.sh"; sourceTree = "<group>"; };
3CF581B9F7526EDA48ED5C6F /* Pods-ContentstackTest.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ContentstackTest.debug.xcconfig"; path = "Target Support Files/Pods-ContentstackTest/Pods-ContentstackTest.debug.xcconfig"; sourceTree = "<group>"; };
47CD50852B76243E0032747B /* BSONObjectIdGenerator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BSONObjectIdGenerator.h; sourceTree = "<group>"; };
47CD50862B7625B90032747B /* BSONObjectIdGenerator.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BSONObjectIdGenerator.m; sourceTree = "<group>"; };
565E11A91BD76654005AD47F /* MMDocument.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MMDocument.h; sourceTree = "<group>"; };
565E11AA1BD76654005AD47F /* MMDocument.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MMDocument.m; sourceTree = "<group>"; };
565E11AB1BD76654005AD47F /* MMDocument_Private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MMDocument_Private.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -386,8 +383,6 @@
23A53F311E276BA5001DBE35 /* CSIOURLCache.m */,
23A53F321E276BA5001DBE35 /* NSObject+Extensions.h */,
23A53F331E276BA5001DBE35 /* NSObject+Extensions.m */,
47CD50852B76243E0032747B /* BSONObjectIdGenerator.h */,
47CD50862B7625B90032747B /* BSONObjectIdGenerator.m */,
);
path = ContentstackInternal;
sourceTree = "<group>";
Expand Down Expand Up @@ -795,7 +790,6 @@
0FEAEF2A2361A18600985FF9 /* CSURLSessionManager.m in Sources */,
0FEAEF2C2361A18600985FF9 /* CSError.m in Sources */,
23B6F12A1B5662EE00A9E983 /* ISO8601DateFormatter.m in Sources */,
47CD50872B7625B90032747B /* BSONObjectIdGenerator.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down

0 comments on commit f3617c9

Please sign in to comment.