WNTR_V / .github /workflows /deploy.yml
razaali10's picture
Upload folder using huggingface_hub
51ff382 verified
raw
history blame contribute delete
700 Bytes
name: Deploy to Hugging Face Spaces
on:
push:
branches:
- main # Trigger on push to the main branch
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install Hugging Face CLI
run: |
python -m pip install --upgrade pip
pip install huggingface_hub
- name: Upload to Hugging Face Space
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
huggingface-cli upload razaali10/WNTR_V . \
--repo-type=space --token $HF_TOKEN \
--exclude '.git/*'