Skip to content

Commit

Permalink
feat: update action
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeyi-Lin committed Sep 6, 2024
1 parent 7012a34 commit b845f11
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
tags:
- '*'

env:
MODEL_URLS: |
https://github.com/Zeyi-Lin/HivisionIDPhotos/releases/download/pretrained-model/hivision_modnet.onnx
https://github.com/Zeyi-Lin/HivisionIDPhotos/releases/download/pretrained-model/modnet_photographic_portrait_matting.onnx
jobs:
docker:
runs-on: ubuntu-latest
Expand All @@ -16,7 +21,7 @@ jobs:
uses: actions/checkout@v4

- name: Download models
run: echo ${{ vars.MODEL_URLS }} | xargs -n 1 -I {} wget -P hivision/creator/weights {}
run: echo "${{ vars.MODEL_URLS }}" | xargs -n 1 wget -P hivision/creator/weights

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down

0 comments on commit b845f11

Please sign in to comment.