Skip to content

Commit

Permalink
Use LFS for binaries (#72)
Browse files Browse the repository at this point in the history
* Remove binary wildcard from gitignore

* Remove asset pull

* Add onnx wasm lfs assets

* Add workflow dispatch to image deploy
  • Loading branch information
TilmanGriesel authored Jan 13, 2025
1 parent 06a6f10 commit 5efc23c
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 101 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
*.gif binary
*.ttf binary
*.data filter=lfs diff=lfs merge=lfs -text
*.wasm filter=lfs diff=lfs merge=lfs -text
4 changes: 1 addition & 3 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
- main
tags:
- "v*"
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
Expand All @@ -28,9 +29,6 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_API_KEY }}

- name: Pull TTS Model
run: python ./services/web/scripts/pull_tts_assets.py

- name: Build and Push API Image
run: |
docker build \
Expand Down
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,4 @@ output
/node_modules
/docs/.vitepress/cache
*.bak
/services/web/src/static/vendor/tts-sherpa-onnx

# binary
*.wasm
*.data
6 changes: 0 additions & 6 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,8 @@ function clean_environment() {
python setup.py --clean
}

function pull_assets() {
echo "Pulling additional assets..."
python ./services/web/scripts/pull_tts_assets.py
}

function ensure_environment() {
python setup.py
pull_assets
}

function clean_project_images() {
Expand Down
88 changes: 0 additions & 88 deletions services/web/scripts/pull_tts_assets.py

This file was deleted.

Empty file.
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown

0 comments on commit 5efc23c

Please sign in to comment.