tts-service / .github /workflows /update_space.yml
Jesus Lopez
ci: deploy to hf
7e9f59c
raw
history blame
611 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.12"
cache: "poetry"
- name: Install Gradio
run: |
poetry install --only=ci --no-root -q
PATH=$(poetry env info --path)/bin:$PATH
huggingface-cli login --token ${{ secrets.hf_token }}
gradio deploy