From e9be01d67a39452e0ac6c0c6628669f2eecc124f Mon Sep 17 00:00:00 2001 From: JY Kim Date: Thu, 25 Jul 2024 10:56:25 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9A=B4=EC=98=81=20=EB=B0=98=EC=98=81=20(#447?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update build-and-deploy.yml * Update build-and-deploy.yml * Update build-and-deploy.yml * Update deploy.sh --- scripts/deploy.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index b7f92714..038f33d5 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -10,10 +10,12 @@ cd build git config user.name "Entry Dev" git config user.email "entrydev@nts-corp.com" -git checkout -b "$deployName" -# git push --delete "https://${GH_TOKEN}@${GH_REF}" "$deployName" +if [ "$branchName" = "master" ] +then + git checkout -b build +else + git checkout -b "$deployName" +fi + git add . git commit -m "Entry Tool deploy $deployName" -# git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" "$deployName" - -#curl -d '{"tag_name": "v$DATEFMT","target_commitish": "build","name": "v$DATEFMT","body": "Description of the release","draft": false,"prerelease": false}' -X POST "https://developer.github.com/v3/repos/kimokim/entryjs/releases"