Spaces:
Sleeping
Sleeping
Zaheer Khan
commited on
Create deploy.yml for HF deployment
Browse files- .github/workflows/deploy.yml +20 -0
.github/workflows/deploy.yml
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Deploy to Hugging Face Spaces
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
push:
|
| 5 |
+
branches: [ main ]
|
| 6 |
+
|
| 7 |
+
jobs:
|
| 8 |
+
deploy:
|
| 9 |
+
runs-on: ubuntu-latest
|
| 10 |
+
steps:
|
| 11 |
+
- uses: actions/checkout@v3
|
| 12 |
+
|
| 13 |
+
- name: Push to Hugging Face Space
|
| 14 |
+
run: |
|
| 15 |
+
git config --global user.email "mydocument783@gmail.com"
|
| 16 |
+
git config --global user.name "Za_heer"
|
| 17 |
+
git remote add space https://huggingface.co/spaces/Za-heer/AI_Assignment_checker
|
| 18 |
+
git push --force space main
|
| 19 |
+
env:
|
| 20 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|