mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2025-09-12 13:08:47 +00:00
feat!: Include ZIM files in releases (#3102)
This commit is contained in:
19
tools/archive-releases.sh
Executable file
19
tools/archive-releases.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
REPO="privacyguides/privacyguides.org"
|
||||
BASE_DIR="releases"
|
||||
|
||||
mkdir -p "$BASE_DIR"
|
||||
|
||||
# Get all release tags using gh CLI
|
||||
release_tags=$(gh release list -R "$REPO" --limit 1000 | awk '{print $1}')
|
||||
|
||||
for tag in $release_tags; do
|
||||
target_dir="$BASE_DIR/$tag"
|
||||
mkdir -p "$target_dir"
|
||||
echo "Downloading assets for release: $tag"
|
||||
gh release download "$tag" -R "$REPO" --dir "$target_dir"
|
||||
done
|
||||
|
||||
echo "All releases downloaded."
|
Reference in New Issue
Block a user