Spaces:
Sleeping
Sleeping
Download space/.github/workflows/deploy.yml from sancloudmlops/mlops-text-summarizer: direct link, hf CLI and curl.
- Browser
- Download file 845 Bytes
-
https://huggingface.co/spaces/sancloudmlops/mlops-text-summarizer/resolve/main/space/.github/workflows/deploy.yml
- Command line
-
hf download hf://spaces/sancloudmlops/mlops-text-summarizer/space/.github/workflows/deploy.yml
-
curl -L -o deploy.yml https://huggingface.co/spaces/sancloudmlops/mlops-text-summarizer/resolve/main/space/.github/workflows/deploy.yml
845 Bytes
| name: Deploy to Hugging Face Spaces | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Install Git LFS | |
| run: | | |
| git lfs install | |
| - name: Push to Hugging Face Space | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| run: | | |
| git config --global user.email "sancloudmlops@outlook.com" | |
| git config --global user.name "sancloudmlops" | |
| git clone https://huggingface.co/spaces/sancloudmlops/mlops-text-summarizer space | |
| rsync -av --exclude '.git' ./ space/ | |
| cd space | |
| git add . | |
| git commit -m "Deploy from GitHub" | |
| git push https://sancloudmlops:$HF_TOKEN@huggingface.co/spaces/sancloudmlops/mlops-text-summarizer main | |