Mandri commited on
Commit
301ed52
ยท
unverified ยท
1 Parent(s): b3c342d

Create deploy.yml

Browse files
Files changed (1) hide show
  1. .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