Skip to content

Commit

Permalink
Add post-deploy script that automatically configures umgap files
Browse files Browse the repository at this point in the history
  • Loading branch information
pverscha committed Apr 11, 2024
1 parent 877a9c7 commit 963c241
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions latest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${UMGAP_VERSION}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "5.1.2",
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
"build": "vue-tsc --noEmit && vite build && ./post-deploy.sh",
"preview": "vite preview",
"lint": "eslint . --fix --ignore-path .gitignore"
},
Expand Down
13 changes: 13 additions & 0 deletions post-deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This script should be executed after the application has been compiled and built. This script is automatically
# executed as part of the "build"-command of npm (as defined in the package.json file).

# First step, create links to the files that are required by the UMGAP pipeline in the correct location.
UMGAP_VERSION="2024-03-07"
mkdir dist/system
mkdir dist/system/umgap
mkdir dist/system/umgap/${UMGAP_VERSION}

printf '${UMGAP_VERSION}\n' > latest
ln -s "/mnt/datapept/${UMGAP_VERSION}/2024-03-07/taxons.tsv" "dist/system/umgap/${UMGAP_VERSION}/taxons.tsv"
ln -s "/mnt/datapept/${UMGAP_VERSION}/2024-03-07/tryptic.fst" "dist/system/umgap/${UMGAP_VERSION}/tryptic.fst"
ln -s "/mnt/datapept/${UMGAP_VERSION}/2024-03-07/ninemer.fst" "dist/system/umgap/${UMGAP_VERSION}/ninemer.fst"

0 comments on commit 963c241

Please sign in to comment.