Spaces:
Build error
Build error
Download .github/workflows/deploy_app1.yaml from SoyAlekZen/MACProjectAssistant: direct link, hf CLI and curl.
- Browser
- Download file 666 Bytes
-
https://huggingface.co/spaces/SoyAlekZen/MACProjectAssistant/resolve/main/.github/workflows/deploy_app1.yaml
- Command line
-
hf download hf://spaces/SoyAlekZen/MACProjectAssistant/.github/workflows/deploy_app1.yaml
-
curl -L -o deploy_app1.yaml https://huggingface.co/spaces/SoyAlekZen/MACProjectAssistant/resolve/main/.github/workflows/deploy_app1.yaml
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 | |