Skip to content

Commit

Permalink
♻️ Download and install default Replicate models
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGraversen committed Nov 4, 2024
1 parent 877331a commit 90c25d2
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/publish-maven-modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,21 @@ jobs:
distribution: 'temurin'
java-version: '21'

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r replicate-tools/requirements.txt
- name: Run replicate-tools to download JSON schemas
env:
REPLICATE_API_TOKEN: ${{ secrets.REPLICATE_API_TOKEN }}
run: |
cd replicate-tools
python download_replicate_schemas.py
- name: Run Maven to generate Java models
run: |
mvn -B -ntp clean install -pl '!replicate-models'
mvn -B -ntp clean install
- name: Deploy Maven artifact to GitHub Packages
env:
Expand Down

0 comments on commit 90c25d2

Please sign in to comment.