Skip to content

Commit

Permalink
DOC: Remove datalad archive before regenerating
Browse files Browse the repository at this point in the history
The directory path passed to `datalad export-archive` must:

1. Note exist already
2. The directory + .tar.gz must not exist.

Or the expeceted archive output path is not correct.
  • Loading branch information
thewtex committed Jan 7, 2025
1 parent 898def6 commit 5ac43e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Documentation/Maintenance/Release.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,9 @@ datalad save -m "ENH: Pre-updates for ITK-v<itk-release-version>"
Upload the tree to archival storage with:

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

```bash
rm -rf ~/data/itk-archive && rm -f ~/data/itk-archive.tar.gz
tar -xf ~/data/itk-archive.tar.gz -C ~/data/
datalad export-archive ~/data/itk-archive
rm -rf ~/data/itk-archive && mkdir -p ~/data/itk-archive && tar -xf ~/data/itk-archive.tar.gz -C ~/data/
cd ~/data/itk-archive
w3 put . --no-wrap -n ITKData-v<itk-release-version> -H
cd -
Expand Down

0 comments on commit 5ac43e1

Please sign in to comment.