Skip to content

Commit

Permalink
Merge pull request #642 from iimpulse/feature/maxoa2
Browse files Browse the repository at this point in the history
Feature/maxoa2
  • Loading branch information
Leigh Carmody authored May 24, 2024
2 parents 074a434 + be0712c commit 04e63f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ src/ontology/maxo-basic.*
src/ontology/maxo-full.*
src/ontology/maxo-simple.*
src/ontology/maxo-simple-non-classified.*
src/ontology/maxoa-key.txt
semantic.cache
bin/
src/ontology/seed.txt
Expand Down
7 changes: 4 additions & 3 deletions src/ontology/maxo.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,13 @@ merge_template: $(MERGE_TEMPLATE)
# YOU MUST SET THE MAXOA_RELEASE_PASSWORD ENVRIONMENTAL VARIABLE WHEN RELEASING
MAXOA_DIRECTORY=tmp/maxoa
MAXOA_FILENAME=maxo-annotations.tsv
MAXOA_RELEASE_PASSWORD=XXXXXXXFAKEPASSWORD

MAXOA_RELEASE_PASSWORD=$(shell cat maxoa-key.txt)
$(MAXOA_DIRECTORY)/$(MAXOA_FILENAME): $(SRC)
mkdir -p $(MAXOA_DIRECTORY)
@test $(MAXOA_RELEASE_PASSWORD)
@curl -Lk https://poet.jax.org/api/v1/export/release?key=$(MAXOA_RELEASE_PASSWORD) && echo "POET Release Success!" || (echo "POET Release Failure." && exit 1)
@release_response=$(shell curl -I -s -o /dev/null -w "%{http_code}" https://poet.jax.org/api/v1/export/release?key=$(MAXOA_RELEASE_PASSWORD))
@if [ "$$release_response" != "200" ]; then echo "POET Release Failure." && exit 1; fi
@echo "POET Release Success!"
@curl -Lk https://poet.jax.org/api/v1/export/maxo >> $@

.PHONY: maxoa
Expand Down

0 comments on commit 04e63f8

Please sign in to comment.