Skip to content

Commit 3260418

Browse files
committed
rename to annotator.jar, adjust output id
1 parent d9c745d commit 3260418

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/build_genome_nexus_annotator.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
COMMIT_HASH: ${{ github.event.inputs.commit_hash }}
2020
JAVA_VERSION: "21"
2121
JAVA_DISTRIBUTION: "corretto"
22-
# synapse id of the annotator.jar
23-
SYNAPSE_ENTITY_ID: syn22084320
22+
# synapse id of the Genome Nexus folder
23+
OUTPUT_FOLDER_SYNAPSE_ID: syn22105656
2424
# env vars related to testing the annotator.jar
2525
PROD_DOCKER: ghcr.io/sage-bionetworks/genie:main
2626
SYNAPSE_AUTH_TOKEN: ${{ secrets.SYNAPSE_AUTH_TOKEN }}
@@ -96,13 +96,20 @@ jobs:
9696
fi
9797
9898
echo "Found JAR: $FILE_PATH"
99-
echo "Uploading to Synapse entity $SYNAPSE_ENTITY_ID..."
99+
100+
# Rename to annotator.jar
101+
TARGET_PATH="annotationPipeline/target/annotator.jar"
102+
cp "$FILE_PATH" "$TARGET_PATH"
103+
104+
echo "Renamed to: $TARGET_PATH"
105+
ls -lh "$TARGET_PATH"
106+
107+
echo "Uploading to Synapse entity ${{ env.OUTPUT_FOLDER_SYNAPSE_ID }}..."
100108
101109
synapse login
102110
103-
# Apload!
104-
synapse store "$FILE_PATH" \
105-
--parentid "$SYNAPSE_ENTITY_ID" \
111+
# Upload!
112+
synapse store "$TARGET_PATH" --parentid ${{ env.OUTPUT_FOLDER_SYNAPSE_ID }}
106113
check-annotator-build:
107114
needs: build-annotator
108115
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)