feat: Automatically register new genomes as submodules
This commit is contained in:
parent
813924460d
commit
eeafddbf1a
1 changed files with 7 additions and 2 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue