mirror of
https://github.com/Cockatrice/Magic-Spoiler.git
synced 2026-04-21 14:37:50 -05:00
Move branch write inside calling function
This commit is contained in:
parent
7bbc7bc402
commit
b00b8bc154
11
deploy.sh
11
deploy.sh
|
|
@ -6,9 +6,13 @@ TARGET_BRANCH="files"
|
|||
|
||||
function doCompile {
|
||||
python main.py
|
||||
# Push merge or push to our files repo, not pulls.
|
||||
if [ "${ghToken:-false}" != "false" ]; then
|
||||
pushBranch
|
||||
fi
|
||||
}
|
||||
|
||||
function pushRepo {
|
||||
function pushBranch {
|
||||
# Now let's go have some fun with the cloned repo
|
||||
cd out
|
||||
ls
|
||||
|
|
@ -64,8 +68,3 @@ rm -rf out/**/* || exit 0
|
|||
|
||||
# Run our compile script
|
||||
doCompile
|
||||
|
||||
# Push merge or push to our files repo, not pulls.
|
||||
if [ "${ghToken:-false}" != "false" ]; then
|
||||
pushRepo
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user