Mandri
Create deploy.yml
301ed52 unverified
raw
history blame contribute delete
593 Bytes
name: πŸš€ Deploy ke Hugging Face
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: πŸ”Ž Checkout kode (non-shallow)
uses: actions/checkout@v3
with:
fetch-depth: 0 # Ambil seluruh history, penting!
- name: πŸ” Push ke Hugging Face
run: |
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
git remote add hf https://Mandr1:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/Mandr1/Praktekcloud
git push -f hf main