Skip to content

Commit

Permalink
Do prerelease :D
Browse files Browse the repository at this point in the history
  • Loading branch information
George B committed Feb 15, 2024
1 parent 3f278ef commit 77b0b2e
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions .github/actions/generate-native-package/native.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#!/bin/bash

# Read arguments
# export ACCESS_TOKEN=$1
# TODO: remove fake access token
export ACCESS_TOKEN=fake
export ACCESS_TOKEN=$1
export PLATFORM=$2
export RELEASE_TYPE=$3

Expand Down Expand Up @@ -56,14 +54,11 @@ if [ "$PLATFORM" == "ios" ]; then
git tag $CURRENT_VERSION
if [ "$RELEASE_TYPE" = "prerelease" ];
then
echo "git push -u origin $CURRENT_VERSION"
# git push -u origin $CURRENT_VERSION
git push -u origin $CURRENT_VERSION
else
echo "git push origin main"
# git push origin main
git push origin main
fi
# git push --tags
echo "git push --tags"
git push --tags
fi
elif [ "$PLATFORM" == "android" ]; then

Expand Down Expand Up @@ -99,14 +94,11 @@ elif [ "$PLATFORM" == "android" ]; then
git tag $CURRENT_VERSION
if [ "$RELEASE_TYPE" = "prerelease" ];
then
echo "git push -u origin $CURRENT_VERSION"
# git push -u origin $CURRENT_VERSION
git push -u origin $CURRENT_VERSION
else
echo "git push origin main"
# git push origin main
git push origin main
fi
# git push --tags
echo "git push --tags"
git push --tags
fi
else
echo "Unrecognised platform. Please specify \"ios\" or \"android\" as the second argument"
Expand Down

0 comments on commit 77b0b2e

Please sign in to comment.