dependabot[bot]
Bump the actions group with 2 updates (#1)
56aa81e unverified
raw
history blame contribute delete
945 Bytes
name: Deploy to HuggingFace Spaces
on:
push:
branches:
- main
paths:
- "main.py"
- "app.py"
- "pyproject.toml"
- "uv.lock"
- "Dockerfile"
- "README.md"
jobs:
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Install Python
run: uv python install 3.12
- name: Install dependencies
run: uv sync --frozen
- name: Run type checking
run: uv run pyright
deploy:
runs-on: ubuntu-latest
needs: typecheck
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Deploy to HuggingFace Spaces
run: |
git remote add hf https://${{ vars.HF_USERNAME }}:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/${{ vars.HF_USERNAME }}/${{ vars.HF_SPACE_NAME }}
git push --force hf main