feat: Automatically register new genomes as submodules

This commit is contained in:
Matteo Cherubini 2026-06-12 12:16:17 +02:00
parent 813924460d
commit eeafddbf1a

View file

@ -40,6 +40,8 @@ for entry in "${GENOMES[@]}"; do
cd "${GENOME_NAME}"
git switch -C main
# IMPORTANT: Initialize git-crypt BEFORE creating any files
gcrypt_init
@ -50,10 +52,13 @@ for entry in "${GENOMES[@]}"; do
git add .
git commit -m "feat: initial scaffold and git-crypt init for ${GENOME_NAME}"
git branch -M main
git push -u origin main
cd "${WORK_DIR}/${MASTER_REPO}"
git add .gitmodules "${GENOME_NAME}"
git commit -m "chore: register submodule ${GENOME_NAME}"
git push
# Key export and instructions
gcrypt_export_key "${GENOME_NAME}"
gcrypt_print_key_instructions "${GENOME_NAME}"