Skip to content

Commit

Permalink
Deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Dang Quang committed Feb 15, 2024
1 parent 92aae7f commit d0f4045
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,19 @@
ACCOUNT_NAME="timivietnam"
PROJECT_NAME="finey_deploy"

# # Clear before build
# Clear before build
rm -rf ./dist

# Execute for build expo run files
npx expo export --public-url https://${ACCOUNT_NAME}.github.io/${PROJECT_NAME} --force
#npx expo export https://${ACCOUNT_NAME}.github.io/${PROJECT_NAME}
#npx expo export

# Check if dist directory exists, if not create it
#[ -d "./dist" ] || mkdir ./dist


# Execute for build expo run files
npx expo export --public-url https://${ACCOUNT_NAME}.github.io/${PROJECT_NAME}

cp -r ./landing/* ./dist

Expand All @@ -23,10 +31,14 @@ qrencode -s 10 -l L -v 1 -o ./img/ios.png "exps://${ACCOUNT_NAME}.github.io/${PR
git init

# Add all files in the dist directory to the new repository and commit them
git add -A
# git add android-index.json ios-index.json index.html styles.css img bundles assets
git add .
git commit -m "Deploy"

# Add the PROJECT_NAME repository as a remote and push the changes to the master branch
# Add the PROJECT_NAME repository as a remote
git remote add deploy [email protected]:${ACCOUNT_NAME}/${PROJECT_NAME}.git
git push deploy master --force

# Rename the current branch to master
git branch -M master

# Push the changes to the master branch of the deploy repository
git push -u deploy master --force

0 comments on commit d0f4045

Please sign in to comment.