Spaces:
Paused
Paused
Selcan Yukcu
commited on
Commit
·
45d452c
1
Parent(s):
abc4931
feat: add deployment workflow for Hugging Face Space
Browse files- .github/workflows/deploy.yml +20 -0
.github/workflows/deploy.yml
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Deploy to Hugging Face Space
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
push:
|
| 5 |
+
branches:
|
| 6 |
+
- main
|
| 7 |
+
|
| 8 |
+
jobs:
|
| 9 |
+
deploy:
|
| 10 |
+
runs-on: ubuntu-latest
|
| 11 |
+
steps:
|
| 12 |
+
- name: Checkout repository
|
| 13 |
+
uses: actions/checkout@v3
|
| 14 |
+
|
| 15 |
+
- name: Upload to Hugging Face Space
|
| 16 |
+
run: |
|
| 17 |
+
git config --global user.email "you@example.com"
|
| 18 |
+
git config --global user.name "Your Name"
|
| 19 |
+
git remote add hf https://huggingface.co/${{ secrets.HF_SPACE_ID }}
|
| 20 |
+
git push https://huggingface_hub:${{ secrets.HF_TOKEN }}@huggingface.co/${{ secrets.HF_SPACE_ID }} HEAD:main --force
|