Commit ·
491bcfc
1
Parent(s): 68af6df
Update hf command
Browse files- release.sh +3 -2
release.sh
CHANGED
|
@@ -3,6 +3,8 @@
|
|
| 3 |
# Usage: ./release.sh <major|minor|patch>
|
| 4 |
set -e
|
| 5 |
|
|
|
|
|
|
|
| 6 |
# 1. Make sure you have git commit all the changes
|
| 7 |
if test -n "$(git status --porcelain)"; then
|
| 8 |
echo "Please commit all changes before running this script."
|
|
@@ -35,7 +37,6 @@ if [[ ! $answer =~ ^[Yy]$ ]]; then
|
|
| 35 |
fi
|
| 36 |
|
| 37 |
# 3. Git fetch to make sure the `artifacts` branch is up to date
|
| 38 |
-
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
|
|
@@ -64,7 +65,7 @@ ARTIFACTS_DIR=artifacts
|
|
| 64 |
COMMIT_MSG="Update artifacts v$OLD_VERSION → v$NEW_VERSION"
|
| 65 |
# list of tarballs
|
| 66 |
COMMIT_DESC=`find "$ARTIFACTS_DIR" -type f -exec basename {} \;`
|
| 67 |
-
|
| 68 |
atomology/WannierDatasets $ARTIFACTS_DIR . \
|
| 69 |
--repo-type dataset \
|
| 70 |
--revision $DEPLOY_BRANCH \
|
|
|
|
| 3 |
# Usage: ./release.sh <major|minor|patch>
|
| 4 |
set -e
|
| 5 |
|
| 6 |
+
DEPLOY_BRANCH=artifacts
|
| 7 |
+
|
| 8 |
# 1. Make sure you have git commit all the changes
|
| 9 |
if test -n "$(git status --porcelain)"; then
|
| 10 |
echo "Please commit all changes before running this script."
|
|
|
|
| 37 |
fi
|
| 38 |
|
| 39 |
# 3. Git fetch to make sure the `artifacts` branch is up to date
|
|
|
|
| 40 |
git fetch origin $DEPLOY_BRANCH:$DEPLOY_BRANCH
|
| 41 |
# Then make tarballs, which will compare against the `artifacts` branch
|
| 42 |
# and create tarballs only for the new/changed datasets
|
|
|
|
| 65 |
COMMIT_MSG="Update artifacts v$OLD_VERSION → v$NEW_VERSION"
|
| 66 |
# list of tarballs
|
| 67 |
COMMIT_DESC=`find "$ARTIFACTS_DIR" -type f -exec basename {} \;`
|
| 68 |
+
hf upload \
|
| 69 |
atomology/WannierDatasets $ARTIFACTS_DIR . \
|
| 70 |
--repo-type dataset \
|
| 71 |
--revision $DEPLOY_BRANCH \
|