Spaces:
Sleeping
Sleeping
Mandri commited on
Create deploy.yml
Browse files- .github/workflows/deploy.yml +22 -0
.github/workflows/deploy.yml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: ๐ Deploy ke Hugging Face
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
push:
|
| 5 |
+
branches: [ main ]
|
| 6 |
+
|
| 7 |
+
jobs:
|
| 8 |
+
deploy:
|
| 9 |
+
runs-on: ubuntu-latest
|
| 10 |
+
steps:
|
| 11 |
+
- name: ๐ Checkout kode (non-shallow)
|
| 12 |
+
uses: actions/checkout@v3
|
| 13 |
+
with:
|
| 14 |
+
fetch-depth: 0 # Ambil seluruh history, penting!
|
| 15 |
+
|
| 16 |
+
- name: ๐ Push ke Hugging Face
|
| 17 |
+
run: |
|
| 18 |
+
git config --global user.email "action@github.com"
|
| 19 |
+
git config --global user.name "GitHub Action"
|
| 20 |
+
|
| 21 |
+
git remote add hf https://Mandr1:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/Mandr1/Praktekcloud
|
| 22 |
+
git push -f hf main
|