Spaces:
Running
Running
coyotte508
commited on
Commit
·
a47a49b
1
Parent(s):
8881914
possible improvement
Browse files
build.sh
CHANGED
@@ -37,6 +37,7 @@ eval $BUILD_COMMAND
|
|
37 |
echo "Build completed successfully, uploading the build output..."
|
38 |
|
39 |
# Those commands use the HF_TOKEN in the environment
|
|
|
40 |
hfjs create-branch $HF_SPACE_NAME refs/convert/build --repo-type space --empty --force
|
41 |
hfjs upload $HF_SPACE_NAME $OUTPUT_PATH $OUTPUT_PATH --repo-type space --revision refs/convert/build
|
42 |
|
|
|
37 |
echo "Build completed successfully, uploading the build output..."
|
38 |
|
39 |
# Those commands use the HF_TOKEN in the environment
|
40 |
+
# maybe we should use a tmp build branch and upload to it to have no downtime
|
41 |
hfjs create-branch $HF_SPACE_NAME refs/convert/build --repo-type space --empty --force
|
42 |
hfjs upload $HF_SPACE_NAME $OUTPUT_PATH $OUTPUT_PATH --repo-type space --revision refs/convert/build
|
43 |
|