Spaces:
Sleeping
Sleeping
deleted yml
Browse files- .github/workflows/deploy.yml +0 -36
.github/workflows/deploy.yml
DELETED
|
@@ -1,36 +0,0 @@
|
|
| 1 |
-
name: Deploy to Hugging Face Spaces
|
| 2 |
-
|
| 3 |
-
on:
|
| 4 |
-
push:
|
| 5 |
-
branches:
|
| 6 |
-
- main
|
| 7 |
-
workflow_dispatch:
|
| 8 |
-
|
| 9 |
-
jobs:
|
| 10 |
-
deploy:
|
| 11 |
-
runs-on: ubuntu-latest
|
| 12 |
-
|
| 13 |
-
steps:
|
| 14 |
-
- name: Checkout repository
|
| 15 |
-
uses: actions/checkout@v3
|
| 16 |
-
with:
|
| 17 |
-
fetch-depth: 0
|
| 18 |
-
|
| 19 |
-
- name: Push to Hugging Face Spaces
|
| 20 |
-
env:
|
| 21 |
-
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 22 |
-
HF_USERNAME: ${{ secrets.HF_USERNAME }}
|
| 23 |
-
run: |
|
| 24 |
-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
| 25 |
-
git config --global user.name "github-actions[bot]"
|
| 26 |
-
|
| 27 |
-
git remote add hf https://oauth2:${HF_TOKEN}@huggingface.co/spaces/${HF_USERNAME}/resource-optimization-ml
|
| 28 |
-
git push hf main --force
|
| 29 |
-
|
| 30 |
-
- name: Notify deployment
|
| 31 |
-
if: success()
|
| 32 |
-
run: echo "Successfully deployed to Hugging Face Spaces!"
|
| 33 |
-
|
| 34 |
-
- name: Notify failure
|
| 35 |
-
if: failure()
|
| 36 |
-
run: echo "Deployment to Hugging Face Spaces failed!"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|