Skip to content

Commit

Permalink
Auto publish release on GH
Browse files Browse the repository at this point in the history
  • Loading branch information
marchinram committed Nov 21, 2019
1 parent f01278a commit 562695c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ jobs:
- run:
name: Publish package
command: npm publish --access public
- run:
name: Publish Release on GitHub
command: |
ios_version=$(sed -n "/s.dependency 'Pilgrim', '= [0-9].[0-9].[0-9]'/p" pilgrim-sdk-react-native.podspec | sed "s/ s.dependency 'Pilgrim', '= \([0-9].[0-9].[0-9]\)'/\1/")
android_version=$(sed -n "/implementation 'com.foursquare:pilgrimsdk:[0-9].[0-9].[0-9]'/p" android/build.gradle | sed "s/ implementation 'com.foursquare:pilgrimsdk:\([0-9].[0-9].[0-9]\)'/\1/")
curl -s -X POST -d "{\"tag_name\":\"$CIRCLE_TAG\",\"name\":\"$CIRCLE_TAG\",\"body\":\"iOS SDK version: ${ios_version}\nAndroid SDK version: ${android_version}\",\"draft\":false,\"prerelease\":false}" -H "Authorization: token $GITHUB_TOKEN" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/foursquare/pilgrim-sdk-react-native/releases"
workflows:
version: 2
main:
Expand Down

0 comments on commit 562695c

Please sign in to comment.