tts-service / .github /workflows /update_space.yml
jlopez00's picture
Upload folder using huggingface_hub
92772e9 verified
raw
history blame
672 Bytes
name: Run Python script
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "poetry"
- name: Deploy
run: |-
pipx inject poetry poetry-plugin-export
poetry export --only=main >requirements.txt
poetry install --only=ci --no-root -q
PATH=$(poetry env info --path)/bin:$PATH
huggingface-cli login --token ${{ secrets.hf_token }}
gradio deploy