Skip to content

Commit fd5ec47

Browse files
committed
DOC: Remove datalad archive before regenerating
The directory path passed to `datalad export-archive` must: 1. Note exist already 2. The directory + .tar.gz must not exist. Or the expected archive output path is not correct.
1 parent 898def6 commit fd5ec47

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Documentation/Maintenance/Release.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,9 @@ datalad save -m "ENH: Pre-updates for ITK-v<itk-release-version>"
254254
Upload the tree to archival storage with:
255255

256256
```bash
257+
rm -rf ~/data/pre-archive && rm -f ~/data/pre-archive.tar.gz
257258
datalad export-archive ~/data/pre-archive
258-
rm -rf ~/data/pre-archive && mkdir -p ~/data/pre-archive && tar -xf ~/data/pre-archive.tar.gz -C ~/data/
259+
tar -xf ~/data/pre-archive.tar.gz -C ~/data/
259260
cd ~/data/pre-archive
260261
w3 put . --no-wrap -n ITKData-pre-verify -H
261262
cd -
@@ -282,8 +283,9 @@ add your DID, obtained with `w3 whoami`, to the shared space.
282283
Upload the repository update to web3.storage:
283284

284285
```bash
286+
rm -rf ~/data/itk-archive && rm -f ~/data/itk-archive.tar.gz
287+
tar -xf ~/data/itk-archive.tar.gz -C ~/data/
285288
datalad export-archive ~/data/itk-archive
286-
rm -rf ~/data/itk-archive && mkdir -p ~/data/itk-archive && tar -xf ~/data/itk-archive.tar.gz -C ~/data/
287289
cd ~/data/itk-archive
288290
w3 put . --no-wrap -n ITKData-v<itk-release-version> -H
289291
cd -

0 commit comments

Comments
 (0)