-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dang Quang
committed
Feb 15, 2024
1 parent
92aae7f
commit d0f4045
Showing
1 changed file
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 |