Commit
·
c692b0b
1
Parent(s):
92989ca
Allow aborting before create artifacts
Browse files- release.sh +8 -1
release.sh
CHANGED
|
@@ -39,6 +39,13 @@ DEPLOY_BRANCH=artifacts
|
|
| 39 |
git fetch origin $DEPLOY_BRANCH:$DEPLOY_BRANCH
|
| 40 |
# Then make tarballs, which will compare against the `artifacts` branch
|
| 41 |
# and create tarballs only for the new/changed datasets
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
./make_artifacts.jl
|
| 43 |
mv Artifacts.toml artifacts/
|
| 44 |
|
|
@@ -51,7 +58,7 @@ echo -n "Upload artifacts to huggingface. Are you sure? (y/N) "
|
|
| 51 |
read -r answer
|
| 52 |
if [[ ! $answer =~ ^[Yy]$ ]]; then
|
| 53 |
echo "Aborting."
|
| 54 |
-
exit
|
| 55 |
fi
|
| 56 |
ARTIFACTS_DIR=artifacts
|
| 57 |
COMMIT_MSG="Update artifacts v$OLD_VERSION → v$NEW_VERSION"
|
|
|
|
| 39 |
git fetch origin $DEPLOY_BRANCH:$DEPLOY_BRANCH
|
| 40 |
# Then make tarballs, which will compare against the `artifacts` branch
|
| 41 |
# and create tarballs only for the new/changed datasets
|
| 42 |
+
echo -n "Create artifacts tarballs. Are you sure? (y/N) "
|
| 43 |
+
read -r answer
|
| 44 |
+
if [[ ! $answer =~ ^[Yy]$ ]]; then
|
| 45 |
+
echo "Aborting."
|
| 46 |
+
exit 4
|
| 47 |
+
fi
|
| 48 |
+
# ./make_artifacts.jl dryrun
|
| 49 |
./make_artifacts.jl
|
| 50 |
mv Artifacts.toml artifacts/
|
| 51 |
|
|
|
|
| 58 |
read -r answer
|
| 59 |
if [[ ! $answer =~ ^[Yy]$ ]]; then
|
| 60 |
echo "Aborting."
|
| 61 |
+
exit 5
|
| 62 |
fi
|
| 63 |
ARTIFACTS_DIR=artifacts
|
| 64 |
COMMIT_MSG="Update artifacts v$OLD_VERSION → v$NEW_VERSION"
|