Skip to content

Commit

Permalink
Git add before git commit (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
CyonAlexRDX authored Feb 20, 2024
1 parent f54c581 commit dd4eda6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/ios/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,15 @@ XCFRAME_ZIP_PATH=`echo "$OUTPUT_OF_BUILD" | cut -d ";" -f 2` || exit $?

echo "🚢 CHECKSUM: $CHECKSUM"
echo "🚢 XCFRAME_ZIP_PATH: $XCFRAME_ZIP_PATH"
GIT_COMMIT_CMD="git commit -m \"Release of '$NEXT_TAG' (updated Package.swift with new checksum and path to zip on Github). This commit is not merged into main/develop branch (and need not be).\" --no-verify"

GIT_ADD_CMD="git add Package.swift apple/Sources/UniFFI/Sargon.swift"
echo "🚢 Staging (potentially) changed files with: $GIT_ADD_CMD"
eval $GIT_ADD_CMD

GIT_COMMIT_CMD="git commit -m \"Release of '$NEXT_TAG' (updated Package.swift with new checksum and path to zip on Github, and maybe apple/Sources/UniFFI/Sargon.swift). This commit is not merged into main/develop branch (and need not be).\" --no-verify"
echo "🚢 Git commiting changes to Package.swift (and maybe Sargon.swift)"
eval $GIT_COMMIT_CMD

`git tag $NEXT_TAG`
echo "🚢 🏷️ 📡 Pushing tag: $(NEXT_TAG), but only tag, not commit."
`git push origin $NEXT_TAG`
Expand Down

0 comments on commit dd4eda6

Please sign in to comment.