Skip to content

Commit

Permalink
[master] - All js dependencies gone, they were more trouble than they…
Browse files Browse the repository at this point in the history
… were worth - TT
  • Loading branch information
VaultIt Dev committed May 25, 2020
1 parent eeb5e53 commit 6f2b188
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 12 deletions.
15 changes: 6 additions & 9 deletions deploy_pod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@ git checkout master
git reset --hard origin/master
git clean -df

# do the podspec stuff
npm install -g podspec-bump
podspec-bump -w

# commit the podspec bump
./edit-plist.sh `podspec-bump --dump-version`
git commit -am "[ci skip] publishing pod version: `podspec-bump --dump-version`"
git tag "`podspec-bump --dump-version`"
git push https://${PERSONAL_ACCESS_TOKEN}@github.com/Tyler-Keith-Thompson/Workflow.git HEAD -u $(podspec-bump --dump-version)
fastlane patch
version=`/usr/libexec/PlistBuddy -c "Print :CFBundleVersion" Workflow/Info.plist`
git commit -am "[ci skip] publishing pod version: $version"
git tag "$version"
git push https://${PERSONAL_ACCESS_TOKEN}@github.com/Tyler-Keith-Thompson/Workflow.git HEAD -u $version
git reset --hard
git clean -df
curl --data "{\"tag_name\": \"`podspec-bump --dump-version`\",\"target_commitish\": \"master\",\"name\": \"`podspec-bump --dump-version`\",\"body\": \"Release of version `podspec-bump --dump-version`\",\"draft\": false,\"prerelease\": false}" -H "Authorization: token $PERSONAL_ACCESS_TOKEN" "https://api.github.com/repos/Tyler-Keith-Thompson/Workflow/releases"
curl --data "{\"tag_name\": \"$version\",\"target_commitish\": \"master\",\"name\": \"$version\",\"body\": \"Release of version $version\",\"draft\": false,\"prerelease\": false}" -H "Authorization: token $PERSONAL_ACCESS_TOKEN" "https://api.github.com/repos/Tyler-Keith-Thompson/Workflow/releases"
pod trunk push DynamicWorkflow.podspec --allow-warnings
5 changes: 3 additions & 2 deletions edit-plist.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version=$1
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion '${version}'" Workflow/Info.plist
echo "Set plist version to $version"
pathToPlist=$2
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion '${version}'" $pathToPlist
echo "Set plist version to $version in $pathToPlist"
24 changes: 23 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,26 @@ platform :ios do
workspace: 'Workflow.xcworkspace'
)
end
end

desc "Release a new version with a patch bump_type"
lane :patch do
release("patch")
end

desc "Release a new version with a minor bump_type"
lane :minor do
release("minor")
end

desc "Release a new version with a major bump_type"
lane :major do
release("major")
end

def release(type)
podspec_name = "DynamicWorkflow.podspec"
version = version_bump_podspec(path: podspec_name,
bump_type: type)
sh("./../edit-plist.sh", version, "../Workflow/Info.plist")
end
end
15 changes: 15 additions & 0 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,21 @@ or alternatively using `brew cask install fastlane`
fastlane ios unit_test
```

### ios patch
```
fastlane ios patch
```
Release a new version with a patch bump_type
### ios minor
```
fastlane ios minor
```
Release a new version with a minor bump_type
### ios major
```
fastlane ios major
```
Release a new version with a major bump_type

----

Expand Down

0 comments on commit 6f2b188

Please sign in to comment.