MACProjectAssistant / .github /workflows /deploy_app1.yaml
SoyAlekZen's picture
Upload folder using huggingface_hub
2445c2f verified
Raw
History Blame Contribute Delete
666 Bytes
name: Deploy App1 to Hugging Face Spaces
on:
push:
branches:
- main
paths:
- 'app1/**'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11.5'
- name: Install dependencies
run: |
pip install -r app1/requirements.txt
- name: Deploy to Spaces
env:
HF_USERNAME: ${{ secrets.HF_USERNAME }}
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
huggingface-cli login ${{ secrets.HF_TOKEN }}
cd app1
gradio deploy